diff --git a/tools/mbspc/mbspc/l_cmd.h b/tools/mbspc/mbspc/l_cmd.h index 2c919871..8ac167d2 100644 --- a/tools/mbspc/mbspc/l_cmd.h +++ b/tools/mbspc/mbspc/l_cmd.h @@ -42,9 +42,6 @@ typedef enum {false, true} qboolean; typedef unsigned char byte; #endif -// the dec offsetof macro doesnt work very well... -#define myoffsetof(type,identifier) ((size_t)&((type *)0)->identifier) - // set these before calling CheckParm extern int myargc; diff --git a/tools/quake2/common/cmdlib.h b/tools/quake2/common/cmdlib.h index 2955d53f..a925a5f7 100644 --- a/tools/quake2/common/cmdlib.h +++ b/tools/quake2/common/cmdlib.h @@ -65,9 +65,6 @@ typedef unsigned char byte; #define SYS_ERR 3 // error */ -// the dec offsetof macro doesnt work very well... -#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier ) - #define SAFE_MALLOC #ifdef SAFE_MALLOC void *safe_malloc( size_t size ); diff --git a/tools/quake2/qdata_heretic2/common/cmdlib.h b/tools/quake2/qdata_heretic2/common/cmdlib.h index c94ce377..d68bc837 100644 --- a/tools/quake2/qdata_heretic2/common/cmdlib.h +++ b/tools/quake2/qdata_heretic2/common/cmdlib.h @@ -70,8 +70,6 @@ #define SYS_WRN 2 // warnings #define SYS_ERR 3 // error */ -// the dec offsetof macro doesnt work very well... -#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier ) #define SAFE_MALLOC #ifdef SAFE_MALLOC diff --git a/tools/quake3/common/cmdlib.h b/tools/quake3/common/cmdlib.h index 499bff5a..eaa68111 100644 --- a/tools/quake3/common/cmdlib.h +++ b/tools/quake3/common/cmdlib.h @@ -60,9 +60,6 @@ #endif #define MEM_BLOCKSIZE 4096 -// the dec offsetof macro doesnt work very well... -#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier ) - #define SAFE_MALLOC #ifdef SAFE_MALLOC void *safe_malloc( size_t size );