diff options
| author | Peter Jones <pjones@redhat.com> | 2017-09-08 13:50:26 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-09-08 14:49:31 -0400 |
| commit | 1dc35a4fe0bb0b5116e565ee8f827cb22a3f323c (patch) | |
| tree | b61cf40bcee784a52be97bc044ae02a3cc1aca05 /Cryptlib/Include | |
| parent | 9802023c13859cb2fb2e9df924ec203286994d7d (diff) | |
| download | efi-boot-shim-1dc35a4fe0bb0b5116e565ee8f827cb22a3f323c.tar.gz efi-boot-shim-1dc35a4fe0bb0b5116e565ee8f827cb22a3f323c.zip | |
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 <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/Include')
| -rw-r--r-- | Cryptlib/Include/OpenSslSupport.h | 2 |
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
//
|
