make some ifdefs more specific to let this compile on more platforms

This commit is contained in:
Jonathan Gray 2013-04-26 16:18:40 +10:00
parent fb2f55824f
commit 0ad40e0b6d
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#include "../game/q_shared.h"
#include "../renderer/tr_local.h"
#ifdef __linux__
#ifndef _WIN32
typedef unsigned int GLenum;
#endif

View File

@ -977,7 +977,7 @@ void Sys_Log( const char *file, const void *buffer, int size, bool flush );
// any game related timing information should come from event timestamps
int Sys_Milliseconds (bool baseTime = false);
#if __linux__
#ifndef _MSVC_VER
extern "C" void Sys_SnapVector( float *v );
#else

View File

@ -28,7 +28,7 @@ typedef unsigned int glIndex_t;
#endif
// fast float to int conversion
#if id386 && !( (defined __linux__ || defined __FreeBSD__ ) && (defined __i386__ ) ) // rb010123
#if (defined(_MSVC_VER) && defined(id386))
inline long myftol( float f );
#else
#define myftol(x) ((int)(x))

View File

@ -7,7 +7,7 @@
// Yeah, this might be kind of bad, but no linux version is planned so far :-) - AReis
// Gee- thanks guys - jdrews, the linux porter...
#ifndef _XBOX
#ifndef __linux__
#ifdef _WIN32
#include "../win32/glw_win.h"
#endif
#endif

View File

@ -1206,7 +1206,7 @@ void RB_CalcRotateTexCoords( float degsPerSecond, float *st )
#if id386 && !( (defined __linux__ || defined __FreeBSD__ ) && (defined __i386__ ) ) // rb010123
#if (defined(_MSVC_VER) && defined(id386))
#pragma warning (disable: 4035)//no return value
inline long myftol( float f ) {
static int tmp;