Re-define fileHandle_t as void * so that it is 64-bit safe. Fixes 4 compiler warnings and potentially some broken code.

This commit is contained in:
jdolan 2013-07-07 10:14:29 -04:00
parent 2f403e160b
commit 21a7ab44c7
3 changed files with 2 additions and 7 deletions

View file

@ -31,7 +31,7 @@ const char* ExtractFilename( const char* path );
bool FileExists( const char *filename ); bool FileExists( const char *filename );
int Q_stricmp( const char *s1, const char *s2 ); int Q_stricmp( const char *s1, const char *s2 );
typedef int fileHandle_t; typedef void * fileHandle_t;
#define qfalse false #define qfalse false
#define qtrue true #define qtrue true

View file

@ -212,10 +212,7 @@ typedef unsigned char byte;
#define EQUAL_EPSILON 0.001 #define EQUAL_EPSILON 0.001
typedef int qhandle_t; typedef void * fileHandle_t;
typedef int sfxHandle_t;
typedef int fileHandle_t;
typedef int clipHandle_t;
typedef enum { typedef enum {
INVALID_JOINT = -1 INVALID_JOINT = -1

View file

@ -35,8 +35,6 @@
#include "util_str.h" #include "util_str.h"
#include "math_vector.h" #include "math_vector.h"
typedef int fileHandle_t;
extern void glBox( idVec3 &color, idVec3 &point, float size ); extern void glBox( idVec3 &color, idVec3 &point, float size );
extern void glLabeledPoint( idVec3 &color, idVec3 &point, float size, const char *label ); extern void glLabeledPoint( idVec3 &color, idVec3 &point, float size, const char *label );