diff options
author | Gabriel Jacobo <gabomdq@gmail.com> | 2014-06-06 15:45:59 -0300 |
---|---|---|
committer | Gabriel Jacobo <gabomdq@gmail.com> | 2014-06-06 15:45:59 -0300 |
commit | a6be3ef7dfc35d4d657054b134e7974b04a53bca (patch) | |
tree | 0edec72fe8e93e88dff082d800e516c0a5aeb0bf /include/SDL_platform.h | |
parent | d0bc8aeb4e54123d6ed5307f0cd2ac0ee8a46fc7 (diff) | |
download | sdl-a6be3ef7dfc35d4d657054b134e7974b04a53bca.tar.gz |
Chrome's Native Client backend implementation
Diffstat (limited to 'include/SDL_platform.h')
-rw-r--r-- | include/SDL_platform.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/SDL_platform.h b/include/SDL_platform.h index 83381be91..e6b3e9d91 100644 --- a/include/SDL_platform.h +++ b/include/SDL_platform.h @@ -56,7 +56,7 @@ #undef __IRIX__ #define __IRIX__ 1 #endif -#if defined(linux) || defined(__linux) || defined(__linux__) +#if (defined(linux) || defined(__linux) || defined(__linux__)) #undef __LINUX__ #define __LINUX__ 1 #endif @@ -142,6 +142,23 @@ #define __PSP__ 1 #endif +/* The NACL compiler defines __native_client__ and __pnacl__ + * Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi + */ +#if defined(__native_client__) +#undef __LINUX__ +#undef __NACL__ +#define __NACL__ 1 +#endif +#if defined(__pnacl__) +#undef __LINUX__ +#undef __PNACL__ +#define __PNACL__ 1 +/* PNACL with newlib supports static linking only */ +#define __SDL_NOGETPROCADDR__ +#endif + + #include "begin_code.h" /* Set up for C function definitions, even when using C++ */ #ifdef __cplusplus |