diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index 114b6f2b..d402f634 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -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