preproc: more unknown architecture error

This commit is contained in:
Thomas Debesse 2017-08-30 13:37:53 +02:00
parent 417032e526
commit 38b0faf0da
3 changed files with 12 additions and 12 deletions

View file

@ -80,9 +80,10 @@ void Net_SetAddressPort( address_t *address, int port ){
int Net_AddressCompare( address_t *addr1, address_t *addr2 ){
#ifdef _WIN32
return stricmp( addr1->ip, addr2->ip );
#endif
#if defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
#elif defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __APPLE__ )
return strcasecmp( addr1->ip, addr2->ip );
#else
#error unknown architecture
#endif
} //end of the function Net_AddressCompare
//===========================================================================

View file

@ -152,11 +152,9 @@ void osxFreeMemory( void *pointer );
}
#endif
#endif
//======================= MAC DEFINES =================================
#ifdef __MACOS__
#elif defined( __MACOS__ )
// the mac compiler can't handle >32k of locals, so we
// just waste space and make big arrays static...
@ -184,11 +182,10 @@ void Sys_PumpEvents( void );
#define QDECL __cdecl
#define _alloca alloca
#endif
//======================= LINUX DEFINES =================================
#ifdef __linux__
#elif defined( __linux__ )
#define MAC_STATIC
@ -202,11 +199,9 @@ void Sys_PumpEvents( void );
#define PATH_SEP '/'
#endif
//======================= FreeBSD DEFINES =================================
#ifdef __FreeBSD__
#elif defined( __FreeBSD__ )
#define MAC_STATIC
@ -218,10 +213,12 @@ void Sys_PumpEvents( void );
#define PATH_SEP '/'
#endif
//=============================================================
#else
#error unknown architecture
#endif
typedef enum {qfalse, qtrue} qboolean;
typedef unsigned char byte;

View file

@ -477,6 +477,8 @@ int mainRadiant( int argc, char* argv[] ) {
libgl = "libGL.so.1";
#elif defined ( __APPLE__ )
libgl = "/opt/local/lib/libGL.dylib";
#else
#error unknown architecture
#endif
}