From d77b584f45115a89b71202504f793f41b274be11 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 25 Nov 2019 17:18:13 -0500 Subject: [PATCH] remove unnecessary code --- source/q_stdinc.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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,