From 1dc35a4fe0bb0b5116e565ee8f827cb22a3f323c Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 8 Sep 2017 13:50:26 -0400 Subject: [PATCH] Work around some annoying compiler grievances I'm still having some trouble with the offsetof() definition, so just nerf it to what stddef.h would say anyway. Signed-off-by: Peter Jones --- Cryptlib/Include/OpenSslSupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cryptlib/Include/OpenSslSupport.h b/Cryptlib/Include/OpenSslSupport.h index 573daca..d7650b3 100644 --- a/Cryptlib/Include/OpenSslSupport.h +++ b/Cryptlib/Include/OpenSslSupport.h @@ -200,7 +200,7 @@ typedef CHAR8 *VA_LIST; For pre-Standard C compilers, here is a version that usually works (but watch out!): */ #ifndef offsetof -#define offsetof(type, member) ( (UINTN) & ((type*)0) -> member ) +#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) #endif //