mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-07 21:10:46 +08:00
engine: use GCC provided offsetof implementation
This commit is contained in:
@@ -28,8 +28,6 @@ GNU General Public License for more details.
|
||||
#define DT_STRING BIT( 7 ) // A null terminated string, sent as 8 byte chars
|
||||
#define DT_SIGNED BIT( 8 ) // sign modificator
|
||||
|
||||
#undef offsetof
|
||||
#define offsetof( s, m ) (size_t)&(((s *)0)->m)
|
||||
#define NUM_FIELDS( x ) ((sizeof( x ) / sizeof( x[0] )) - 1)
|
||||
|
||||
// helper macroses
|
||||
|
||||
Reference in New Issue
Block a user