summaryrefslogtreecommitdiff
path: root/Cryptlib/Include/OpenSslSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'Cryptlib/Include/OpenSslSupport.h')
-rw-r--r--Cryptlib/Include/OpenSslSupport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cryptlib/Include/OpenSslSupport.h b/Cryptlib/Include/OpenSslSupport.h
index 573dacac..d7650b3c 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
//