public: add definitions for Solaris

This commit is contained in:
Alibek Omarov 2024-11-07 07:12:30 +03:00
parent d8eb918cea
commit 0adda483c5
3 changed files with 8 additions and 0 deletions

View file

@ -121,6 +121,8 @@ const char *Q_PlatformStringByID( const int platform )
return "psvita";
case PLATFORM_WASI:
return "wasi";
case PLATFORM_SUNOS:
return "sunos";
}
assert( 0 );

View file

@ -81,6 +81,7 @@ Then you can use another oneliner to query all variables:
#undef XASH_RISCV_SINGLEFP
#undef XASH_RISCV_SOFTFP
#undef XASH_SERENITY
#undef XASH_SUNOS
#undef XASH_WIN32
#undef XASH_X86
#undef XASH_NSWITCH
@ -130,6 +131,8 @@ Then you can use another oneliner to query all variables:
#define XASH_PSVITA 1
#elif defined __wasi__
#define XASH_WASI 1
#elif defined __sun__
#define XASH_SUNOS 1
#else
#error
#endif

View file

@ -42,6 +42,7 @@ GNU General Public License for more details.
#define PLATFORM_NSWITCH 13
#define PLATFORM_PSVITA 14
#define PLATFORM_WASI 15
#define PLATFORM_SUNOS 16
#if XASH_WIN32
#define XASH_PLATFORM PLATFORM_WIN32
@ -73,6 +74,8 @@ GNU General Public License for more details.
#define XASH_PLATFORM PLATFORM_PSVITA
#elif XASH_WASI
#define XASH_PLATFORM PLATFORM_WASI
#elif XASH_SUNOS
#define XASH_PLATFORM PLATFORM_SUNOS
#else
#error
#endif