Browse Source

public: remove linuxunkabi

master
Alibek Omarov 4 months ago
parent
commit
bf17996f72
  1. 2
      public/build.c
  2. 8
      public/build.h
  3. 3
      public/buildenums.h

2
public/build.c

@ -95,8 +95,6 @@ const char *Q_PlatformStringByID( const int platform ) @@ -95,8 +95,6 @@ const char *Q_PlatformStringByID( const int platform )
return "win32";
case PLATFORM_ANDROID:
return "android";
case PLATFORM_LINUX_UNKNOWN:
return "linuxunkabi";
case PLATFORM_LINUX:
return "linux";
case PLATFORM_APPLE:

8
public/build.h

@ -69,7 +69,6 @@ Then you can use another oneliner to query all variables: @@ -69,7 +69,6 @@ Then you can use another oneliner to query all variables:
#undef XASH_IRIX
#undef XASH_JS
#undef XASH_LINUX
#undef XASH_LINUX_UNKNOWN
#undef XASH_LITTLE_ENDIAN
#undef XASH_MIPS
#undef XASH_MOBILE_PLATFORM
@ -103,13 +102,6 @@ Then you can use another oneliner to query all variables: @@ -103,13 +102,6 @@ Then you can use another oneliner to query all variables:
#if defined __linux__
#if defined __ANDROID__
#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
#define XASH_LINUX 1
#elif defined __FreeBSD__

3
public/buildenums.h

@ -41,14 +41,11 @@ GNU General Public License for more details. @@ -41,14 +41,11 @@ GNU General Public License for more details.
#define PLATFORM_IRIX 12
#define PLATFORM_NSWITCH 13
#define PLATFORM_PSVITA 14
#define PLATFORM_LINUX_UNKNOWN 15
#if XASH_WIN32
#define XASH_PLATFORM PLATFORM_WIN32
#elif XASH_ANDROID
#define XASH_PLATFORM PLATFORM_ANDROID
#elif XASH_LINUX_UNKNOWN
#define XASH_PLATFORM PLATFORM_LINUX_UNKNOWN
#elif XASH_LINUX
#define XASH_PLATFORM PLATFORM_LINUX
#elif XASH_APPLE

Loading…
Cancel
Save