diff --git a/source/q_stdinc.h b/source/q_stdinc.h index 552a254..5ccbee6 100644 --- a/source/q_stdinc.h +++ b/source/q_stdinc.h @@ -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 * sizes: These macros are from SDL headers. */ @@ -91,18 +81,9 @@ typedef enum { } THE_DUMMY_ENUM; _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 { false = 0,