public: define XASH_TERMUX if __TERMUX__ is defined. Do not enable XASH_MOBILE_PLATFORM for it

This commit is contained in:
Alibek Omarov
2025-04-24 21:40:35 +03:00
parent 61d8d5e12b
commit 22661fd446

View File

@@ -82,6 +82,7 @@ Then you can use another oneliner to query all variables:
#undef XASH_RISCV_SOFTFP
#undef XASH_SERENITY
#undef XASH_SUNOS
#undef XASH_TERMUX
#undef XASH_WIN32
#undef XASH_X86
#undef XASH_NSWITCH
@@ -105,6 +106,9 @@ Then you can use another oneliner to query all variables:
#if defined __linux__
#if defined __ANDROID__
#define XASH_ANDROID 1
#if defined __TERMUX__
#define XASH_TERMUX 1
#endif
#endif
#define XASH_LINUX 1
#elif defined __FreeBSD__
@@ -143,7 +147,7 @@ Then you can use another oneliner to query all variables:
// but we still need XASH_MOBILE_PLATFORM for the engine.
// So this macro is defined entirely in build-system: see main wscript
// HLSDK/PrimeXT/other SDKs users note: you may ignore this macro
#if XASH_ANDROID || XASH_IOS || XASH_NSWITCH || XASH_PSVITA || XASH_SAILFISH
#if ( XASH_ANDROID && !XASH_TERMUX ) || XASH_IOS || XASH_NSWITCH || XASH_PSVITA || XASH_SAILFISH
#define XASH_MOBILE_PLATFORM 1
#endif