Move idlib typedefs to platform.h

This commit is contained in:
dhewg 2011-12-16 23:15:09 +01:00 committed by Daniel Gibson
parent e522e719dd
commit 487406d861
2 changed files with 23 additions and 23 deletions

View file

@ -72,33 +72,10 @@ public:
=============================================================================== ===============================================================================
*/ */
typedef unsigned char byte; // 8 bits
typedef unsigned short word; // 16 bits
typedef unsigned int dword; // 32 bits
typedef unsigned int uint;
typedef unsigned long ulong;
typedef int qhandle_t;
class idFile; class idFile;
class idVec3; class idVec3;
class idVec4; class idVec4;
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef BIT
#define BIT( num ) ( 1 << ( num ) )
#endif
#define MAX_STRING_CHARS 1024 // max length of a string
// maximum world size
#define MAX_WORLD_COORD ( 128 * 1024 )
#define MIN_WORLD_COORD ( -128 * 1024 )
#define MAX_WORLD_SIZE ( MAX_WORLD_COORD - MIN_WORLD_COORD )
// basic colors // basic colors
extern idVec4 colorBlack; extern idVec4 colorBlack;
extern idVec4 colorWhite; extern idVec4 colorWhite;

View file

@ -216,4 +216,27 @@ If you have questions concerning this license or the applicable additional terms
#define ID_TIME_T time_t #define ID_TIME_T time_t
typedef unsigned char byte; // 8 bits
typedef unsigned short word; // 16 bits
typedef unsigned int dword; // 32 bits
typedef unsigned int uint;
typedef unsigned long ulong;
typedef int qhandle_t;
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef BIT
#define BIT( num ) ( 1 << ( num ) )
#endif
#define MAX_STRING_CHARS 1024 // max length of a string
// maximum world size
#define MAX_WORLD_COORD ( 128 * 1024 )
#define MIN_WORLD_COORD ( -128 * 1024 )
#define MAX_WORLD_SIZE ( MAX_WORLD_COORD - MIN_WORLD_COORD )
#endif #endif