qbsp: define offsetof to builtin if not defined

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-06-24 13:58:58 +09:30
parent ff9bb3eab0
commit 7a65efbc00
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@
#include "warnerr.h"
#include "file.h"
#ifndef offsetof
#define offsetof(type, member) __builtin_offsetof(type, member)
#endif
//===== cmdlib.h
// Current BSP version