|
|
@ -69,6 +69,7 @@ Then you can use another oneliner to query all variables: |
|
|
|
#undef XASH_IRIX |
|
|
|
#undef XASH_IRIX |
|
|
|
#undef XASH_JS |
|
|
|
#undef XASH_JS |
|
|
|
#undef XASH_LINUX |
|
|
|
#undef XASH_LINUX |
|
|
|
|
|
|
|
#undef XASH_LINUX_UNKNOWN |
|
|
|
#undef XASH_LITTLE_ENDIAN |
|
|
|
#undef XASH_LITTLE_ENDIAN |
|
|
|
#undef XASH_MIPS |
|
|
|
#undef XASH_MIPS |
|
|
|
#undef XASH_MOBILE_PLATFORM |
|
|
|
#undef XASH_MOBILE_PLATFORM |
|
|
@ -98,10 +99,17 @@ Then you can use another oneliner to query all variables: |
|
|
|
#else // POSIX compatible
|
|
|
|
#else // POSIX compatible
|
|
|
|
#define XASH_POSIX 1 |
|
|
|
#define XASH_POSIX 1 |
|
|
|
#if defined __linux__ |
|
|
|
#if defined __linux__ |
|
|
|
#define XASH_LINUX 1 |
|
|
|
|
|
|
|
#if defined __ANDROID__ |
|
|
|
#if defined __ANDROID__ |
|
|
|
#define XASH_ANDROID 1 |
|
|
|
#define XASH_ANDROID 1 |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#include <features.h> |
|
|
|
|
|
|
|
// if our system libc has features.h header
|
|
|
|
|
|
|
|
// try to detect it to not confuse other libcs with built with glibc game libraries
|
|
|
|
|
|
|
|
#if !defined __GLIBC__ |
|
|
|
|
|
|
|
#define XASH_LINUX_UNKNOWN 1 |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#define XASH_LINUX 1 |
|
|
|
#elif defined __FreeBSD__ |
|
|
|
#elif defined __FreeBSD__ |
|
|
|
#define XASH_FREEBSD 1 |
|
|
|
#define XASH_FREEBSD 1 |
|
|
|
#elif defined __NetBSD__ |
|
|
|
#elif defined __NetBSD__ |
|
|
|