mirror of
https://github.com/ioquake/jedi-academy.git
synced 2025-03-13 14:21:56 +00:00
make some ifdefs more specific to let this compile on more platforms
This commit is contained in:
parent
fb2f55824f
commit
0ad40e0b6d
5 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "../game/q_shared.h"
|
||||
#include "../renderer/tr_local.h"
|
||||
#ifdef __linux__
|
||||
#ifndef _WIN32
|
||||
typedef unsigned int GLenum;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue