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 //