remove unnecessary code
parent
b4c25eb4d9
commit
d77b584f45
|
@ -67,16 +67,6 @@
|
||||||
|
|
||||||
/*==========================================================================*/
|
/*==========================================================================*/
|
||||||
|
|
||||||
#define Q_MAXCHAR ((char)0x7f)
|
|
||||||
#define Q_MAXINT ((int)0x7fffffff)
|
|
||||||
#define Q_MAXLONG ((int)0x7fffffff)
|
|
||||||
#define Q_MAXFLOAT ((int)0x7fffffff)
|
|
||||||
|
|
||||||
#define Q_MINCHAR ((char)0x80)
|
|
||||||
#define Q_MININT ((int)0x80000000)
|
|
||||||
#define Q_MINLONG ((int)0x80000000)
|
|
||||||
#define Q_MINFLOAT ((int)0x7fffffff)
|
|
||||||
|
|
||||||
/* Make sure the types really have the right
|
/* Make sure the types really have the right
|
||||||
* sizes: These macros are from SDL headers.
|
* sizes: These macros are from SDL headers.
|
||||||
*/
|
*/
|
||||||
|
@ -91,18 +81,9 @@ typedef enum {
|
||||||
} THE_DUMMY_ENUM;
|
} THE_DUMMY_ENUM;
|
||||||
_Static_assert(sizeof(THE_DUMMY_ENUM) == sizeof(int), "enum not sizeof(int)");
|
_Static_assert(sizeof(THE_DUMMY_ENUM) == sizeof(int), "enum not sizeof(int)");
|
||||||
|
|
||||||
|
|
||||||
/* Provide a substitute for offsetof() if we don't have one.
|
|
||||||
* This variant works on most (but not *all*) systems...
|
|
||||||
*/
|
|
||||||
#ifndef offsetof
|
|
||||||
#define offsetof(t,m) ((size_t)&(((t *)0)->m))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*==========================================================================*/
|
/*==========================================================================*/
|
||||||
|
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
false = 0,
|
false = 0,
|
||||||
|
|
Loading…
Reference in New Issue