Fix compilation for *BSD

Change most __linux__ defines to __unix__ for all UNIX like systems.
This commit is contained in:
dhewg 2011-12-07 19:31:01 +01:00 committed by Daniel Gibson
parent c011a0f72a
commit 4cfc2d87a5
5 changed files with 6 additions and 6 deletions

View file

@ -2003,7 +2003,7 @@ void idMultiplayerGame::UpdateMainGui( void ) {
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
}
mainGui->StateChanged( gameLocal.time );
#if defined( __linux__ )
#if defined( __unix__ )
// replacing the oh-so-useful s_reverse with sound backend prompt
mainGui->SetStateString( "driver_prompt", "1" );
#else

View file

@ -100,7 +100,7 @@ If you have questions concerning this license or the applicable additional terms
// atm, we have no useful way to reconstruct the trace, so let's leave it off
#define ID_BT_STUB
#ifndef ID_BT_STUB
#if defined( __linux__ )
#if defined( __unix__ )
#if defined( _DEBUG )
#define ID_BT_STUB
#endif

View file

@ -1485,7 +1485,7 @@ void idMultiplayerGame::UpdateMainGui( void ) {
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
}
mainGui->StateChanged( gameLocal.time );
#if defined( __linux__ )
#if defined( __unix__ )
// replacing the oh-so-useful s_reverse with sound backend prompt
mainGui->SetStateString( "driver_prompt", "1" );
#else

View file

@ -2044,7 +2044,7 @@ bool idFrustum::ProjectionBounds( const idBounds &bounds, idBounds &projectionBo
return ProjectionBounds( idBox( bounds, vec3_origin, mat3_identity ), projectionBounds );
}
#ifndef __linux__
#ifndef __GNUC__
/*
============

View file

@ -42,7 +42,7 @@ If you have questions concerning this license or the applicable additional terms
#define GL_GLEXT_LEGACY
#include <OpenGL/gl.h>
#elif defined( __linux__ )
#elif defined( __unix__ )
// using our local glext.h
// http://oss.sgi.com/projects/ogl-sample/ABI/
@ -544,7 +544,7 @@ extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
#endif // _WIN32
#if defined( __linux__ )
#if defined( __unix__ )
//GLX Functions
extern XVisualInfo * (*qglXChooseVisual)( Display *dpy, int screen, int *attribList );