From cf6647e07c452f6522aa8b5a9619a1ac1246f9af Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sun, 7 Jul 2019 19:45:28 +0500 Subject: [PATCH] Try to fix clang build. --- dlls/extdll.h | 1 + engine/eiface.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/extdll.h b/dlls/extdll.h index d6ea4888..4610db5e 100644 --- a/dlls/extdll.h +++ b/dlls/extdll.h @@ -62,6 +62,7 @@ typedef int BOOL; // Misc C-runtime library headers #include "stdio.h" #include "stdlib.h" +#include "stddef.h" #include "math.h" #if defined(__LP64__) || defined(__LLP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) diff --git a/engine/eiface.h b/engine/eiface.h index cad60848..6a5f86fc 100644 --- a/engine/eiface.h +++ b/engine/eiface.h @@ -355,7 +355,7 @@ typedef enum _fieldtypes FIELD_TYPECOUNT // MUST BE LAST } FIELDTYPE; -#if !defined(offsetof) && !defined(GNUC) +#if !defined(offsetof) && !defined(__GNUC__) #define offsetof(s,m) (size_t)&(((s *)0)->m) #endif