Browse Source

build: work around a bug in the NaCl SDK C++ headers.

legacy
Sam Hocevar sam 11 years ago
parent
commit
f2560ff5b8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/core.h

+ 7
- 0
src/core.h View File

@@ -78,6 +78,13 @@ static inline int isnan(float f)
}
#endif


/* XXX: workaround for a compilation bug in NaCl headers */
#if defined __native_client__
# define typeid(x) (*(type_info*)nullptr)
#endif


/* External declaration for LolFx files. */
#define LOLFX_RESOURCE_DECLARE(name) \
extern "C" char const *LOLFX_RESOURCE_NAME(name)


Loading…
Cancel
Save