mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-03-04 00:11:25 +00:00
Fix compilation for *BSD
Change most __linux__ defines to __unix__ for all UNIX like systems.
This commit is contained in:
parent
c011a0f72a
commit
4cfc2d87a5
5 changed files with 6 additions and 6 deletions
|
@ -2003,7 +2003,7 @@ void idMultiplayerGame::UpdateMainGui( void ) {
|
||||||
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
|
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
|
||||||
}
|
}
|
||||||
mainGui->StateChanged( gameLocal.time );
|
mainGui->StateChanged( gameLocal.time );
|
||||||
#if defined( __linux__ )
|
#if defined( __unix__ )
|
||||||
// replacing the oh-so-useful s_reverse with sound backend prompt
|
// replacing the oh-so-useful s_reverse with sound backend prompt
|
||||||
mainGui->SetStateString( "driver_prompt", "1" );
|
mainGui->SetStateString( "driver_prompt", "1" );
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -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
|
// atm, we have no useful way to reconstruct the trace, so let's leave it off
|
||||||
#define ID_BT_STUB
|
#define ID_BT_STUB
|
||||||
#ifndef ID_BT_STUB
|
#ifndef ID_BT_STUB
|
||||||
#if defined( __linux__ )
|
#if defined( __unix__ )
|
||||||
#if defined( _DEBUG )
|
#if defined( _DEBUG )
|
||||||
#define ID_BT_STUB
|
#define ID_BT_STUB
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1485,7 +1485,7 @@ void idMultiplayerGame::UpdateMainGui( void ) {
|
||||||
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
|
mainGui->SetStateString( keyval->GetKey(), keyval->GetValue() );
|
||||||
}
|
}
|
||||||
mainGui->StateChanged( gameLocal.time );
|
mainGui->StateChanged( gameLocal.time );
|
||||||
#if defined( __linux__ )
|
#if defined( __unix__ )
|
||||||
// replacing the oh-so-useful s_reverse with sound backend prompt
|
// replacing the oh-so-useful s_reverse with sound backend prompt
|
||||||
mainGui->SetStateString( "driver_prompt", "1" );
|
mainGui->SetStateString( "driver_prompt", "1" );
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -2044,7 +2044,7 @@ bool idFrustum::ProjectionBounds( const idBounds &bounds, idBounds &projectionBo
|
||||||
return ProjectionBounds( idBox( bounds, vec3_origin, mat3_identity ), projectionBounds );
|
return ProjectionBounds( idBox( bounds, vec3_origin, mat3_identity ), projectionBounds );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __linux__
|
#ifndef __GNUC__
|
||||||
|
|
||||||
/*
|
/*
|
||||||
============
|
============
|
||||||
|
|
|
@ -42,7 +42,7 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
#define GL_GLEXT_LEGACY
|
#define GL_GLEXT_LEGACY
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
|
|
||||||
#elif defined( __linux__ )
|
#elif defined( __unix__ )
|
||||||
|
|
||||||
// using our local glext.h
|
// using our local glext.h
|
||||||
// http://oss.sgi.com/projects/ogl-sample/ABI/
|
// http://oss.sgi.com/projects/ogl-sample/ABI/
|
||||||
|
@ -544,7 +544,7 @@ extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
#if defined( __linux__ )
|
#if defined( __unix__ )
|
||||||
|
|
||||||
//GLX Functions
|
//GLX Functions
|
||||||
extern XVisualInfo * (*qglXChooseVisual)( Display *dpy, int screen, int *attribList );
|
extern XVisualInfo * (*qglXChooseVisual)( Display *dpy, int screen, int *attribList );
|
||||||
|
|
Loading…
Reference in a new issue