diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-09 14:40:03 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-10 15:54:20 -0500 |
| commit | 9beca885c29c77bb901547321a5ce6fd3c9c8ee3 (patch) | |
| tree | b61a67de468dfdff2225d52b03f280b807714215 /Cryptlib/Library/BaseLib.h | |
| parent | 766aac4d5cfbe76026be5ce718b0883ee211f323 (diff) | |
| download | efi-boot-shim-9beca885c29c77bb901547321a5ce6fd3c9c8ee3.tar.gz efi-boot-shim-9beca885c29c77bb901547321a5ce6fd3c9c8ee3.zip | |
Fix stdarg to work the same everywhere.
This gets us the same working definition for VA_* va_* etc everywhere,
and it's the same definition edk2 is using.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/Library/BaseLib.h')
| -rw-r--r-- | Cryptlib/Library/BaseLib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Cryptlib/Library/BaseLib.h b/Cryptlib/Library/BaseLib.h index 93d5c691..94b25c93 100644 --- a/Cryptlib/Library/BaseLib.h +++ b/Cryptlib/Library/BaseLib.h @@ -1,3 +1,19 @@ +#if defined(__x86_64__) +/* shim.h will check if the compiler is new enough in some other CU */ + +#if !defined(GNU_EFI_USE_EXTERNAL_STDARG) +#define GNU_EFI_USE_EXTERNAL_STDARG +#endif + +#if !defined(GNU_EFI_USE_MS_ABI) +#define GNU_EFI_USE_MS_ABI +#endif + +#ifdef NO_BUILTIN_VA_FUNCS +#undef NO_BUILTIN_VA_FUNCS +#endif +#endif + #include <efi.h> #include <efilib.h> |
