mirror of
https://github.com/w23/xash3d-fwgs
synced 2025-01-18 14:50:05 +01:00
public: fix build
This commit is contained in:
parent
1dc3cc2d57
commit
113904ea91
@ -126,16 +126,6 @@ dll_user_t *FS_FindLibrary( const char *dllname, qboolean directpath )
|
|||||||
=============================================================================
|
=============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
static void COM_GenerateCommonLibraryName( const char *name, const char *ext, int os, int cpu, char *out, size_t size )
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static void COM_GenerateCommonLibraryName( const char *name, const char *ext, char *out, size_t size )
|
static void COM_GenerateCommonLibraryName( const char *name, const char *ext, char *out, size_t size )
|
||||||
{
|
{
|
||||||
#if ( XASH_WIN32 || XASH_LINUX || XASH_APPLE ) && XASH_X86
|
#if ( XASH_WIN32 || XASH_LINUX || XASH_APPLE ) && XASH_X86
|
||||||
|
@ -74,12 +74,14 @@ int Q_buildnum_compat( void )
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
============
|
============
|
||||||
Q_buildos_
|
Q_GetPlatformStringByID
|
||||||
|
|
||||||
Returns name of operating system by ID. Without any spaces.
|
Returns name of operating system by ID. Without any spaces.
|
||||||
|
|
||||||
|
TODO: add platform-dependent ABI variants, for example, different libc on Linux
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
const char *Q_GetPlatformStringByID( const int platform )
|
const char *Q_PlatformStringByID( const int platform )
|
||||||
{
|
{
|
||||||
switch( platform )
|
switch( platform )
|
||||||
{
|
{
|
||||||
|
@ -137,7 +137,7 @@ Then you can use another oneliner to query all variables:
|
|||||||
#define XASH_LITTLE_ENDIAN 1
|
#define XASH_LITTLE_ENDIAN 1
|
||||||
#elif __BIG_ENDIAN__
|
#elif __BIG_ENDIAN__
|
||||||
#define XASH_BIG_ENDIAN 1
|
#define XASH_BIG_ENDIAN 1
|
||||||
#elif defined__BYTE_ORDER__) && defined__ORDER_BIG_ENDIAN__) && defined__ORDER_LITTLE_ENDIAN__) // some compilers define this
|
#elif defined __BYTE_ORDER__ && defined __ORDER_BIG_ENDIAN__ && defined __ORDER_LITTLE_ENDIAN__ // some compilers define this
|
||||||
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||||
#define XASH_BIG_ENDIAN 1
|
#define XASH_BIG_ENDIAN 1
|
||||||
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
|
@ -126,8 +126,6 @@ GNU General Public License for more details.
|
|||||||
#define ARCHITECTURE_RISCV_FP_SOFT 0
|
#define ARCHITECTURE_RISCV_FP_SOFT 0
|
||||||
#define ARCHITECTURE_RISCV_FP_SINGLE 1
|
#define ARCHITECTURE_RISCV_FP_SINGLE 1
|
||||||
#define ARCHITECTURE_RISCV_FP_DOUBLE 2
|
#define ARCHITECTURE_RISCV_FP_DOUBLE 2
|
||||||
#define ARCHITECTURE_RISCV_FP_MASK ( BIT( 2 ) - 1 )
|
|
||||||
#define ARCHITECTURE_RISCV_FP_SHIFT 0
|
|
||||||
|
|
||||||
#if XASH_ARCHITECTURE == ARCHITECTURE_ARM
|
#if XASH_ARCHITECTURE == ARCHITECTURE_ARM
|
||||||
#if XASH_ARM_HARDFP
|
#if XASH_ARM_HARDFP
|
||||||
@ -145,6 +143,8 @@ GNU General Public License for more details.
|
|||||||
#else
|
#else
|
||||||
#error
|
#error
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define XASH_ARCHITECTURE_ABI 0 // unused
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user