mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
preproc: more unknown architecture error
This commit is contained in:
parent
417032e526
commit
38b0faf0da
3 changed files with 12 additions and 12 deletions
|
@ -80,9 +80,10 @@ void Net_SetAddressPort( address_t *address, int port ){
|
||||||
int Net_AddressCompare( address_t *addr1, address_t *addr2 ){
|
int Net_AddressCompare( address_t *addr1, address_t *addr2 ){
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return stricmp( addr1->ip, addr2->ip );
|
return stricmp( addr1->ip, addr2->ip );
|
||||||
#endif
|
#elif defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
|
||||||
#if defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
|
|
||||||
return strcasecmp( addr1->ip, addr2->ip );
|
return strcasecmp( addr1->ip, addr2->ip );
|
||||||
|
#else
|
||||||
|
#error unknown architecture
|
||||||
#endif
|
#endif
|
||||||
} //end of the function Net_AddressCompare
|
} //end of the function Net_AddressCompare
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -152,11 +152,9 @@ void osxFreeMemory( void *pointer );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//======================= MAC DEFINES =================================
|
//======================= MAC DEFINES =================================
|
||||||
|
|
||||||
#ifdef __MACOS__
|
#elif defined( __MACOS__ )
|
||||||
|
|
||||||
// the mac compiler can't handle >32k of locals, so we
|
// the mac compiler can't handle >32k of locals, so we
|
||||||
// just waste space and make big arrays static...
|
// just waste space and make big arrays static...
|
||||||
|
@ -184,11 +182,10 @@ void Sys_PumpEvents( void );
|
||||||
#define QDECL __cdecl
|
#define QDECL __cdecl
|
||||||
|
|
||||||
#define _alloca alloca
|
#define _alloca alloca
|
||||||
#endif
|
|
||||||
|
|
||||||
//======================= LINUX DEFINES =================================
|
//======================= LINUX DEFINES =================================
|
||||||
|
|
||||||
#ifdef __linux__
|
#elif defined( __linux__ )
|
||||||
|
|
||||||
#define MAC_STATIC
|
#define MAC_STATIC
|
||||||
|
|
||||||
|
@ -202,11 +199,9 @@ void Sys_PumpEvents( void );
|
||||||
|
|
||||||
#define PATH_SEP '/'
|
#define PATH_SEP '/'
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//======================= FreeBSD DEFINES =================================
|
//======================= FreeBSD DEFINES =================================
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#elif defined( __FreeBSD__ )
|
||||||
|
|
||||||
#define MAC_STATIC
|
#define MAC_STATIC
|
||||||
|
|
||||||
|
@ -218,10 +213,12 @@ void Sys_PumpEvents( void );
|
||||||
|
|
||||||
#define PATH_SEP '/'
|
#define PATH_SEP '/'
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//=============================================================
|
//=============================================================
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error unknown architecture
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {qfalse, qtrue} qboolean;
|
typedef enum {qfalse, qtrue} qboolean;
|
||||||
|
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
|
|
|
@ -477,6 +477,8 @@ int mainRadiant( int argc, char* argv[] ) {
|
||||||
libgl = "libGL.so.1";
|
libgl = "libGL.so.1";
|
||||||
#elif defined ( __APPLE__ )
|
#elif defined ( __APPLE__ )
|
||||||
libgl = "/opt/local/lib/libGL.dylib";
|
libgl = "/opt/local/lib/libGL.dylib";
|
||||||
|
#else
|
||||||
|
#error unknown architecture
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue