From 031e5cce385d3f96b1caa1d53495332a7eb03749 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Tue, 23 Mar 2021 23:49:46 +0000 Subject: New upstream version 15.3 --- Cryptlib/Library/BaseLib.h | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'Cryptlib/Library/BaseLib.h') diff --git a/Cryptlib/Library/BaseLib.h b/Cryptlib/Library/BaseLib.h index 5d326844..94b25c93 100644 --- a/Cryptlib/Library/BaseLib.h +++ b/Cryptlib/Library/BaseLib.h @@ -1,9 +1,25 @@ +#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 #include UINT32 WriteUnaligned32 (UINT32 *Buffer, UINT32 Value); -UINTN AsciiStrSize (CHAR8 *string); -char *AsciiStrnCpy(char *Destination, char *Source, UINTN count); -char *AsciiStrCat(char *Destination, char *Source); -CHAR8 *AsciiStrCpy(CHAR8 *Destination, CHAR8 *Source); -UINTN AsciiStrDecimalToUintn(const char *String); +UINTN AsciiStrSize (const CHAR8 *string); +CHAR8 *AsciiStrnCpy(CHAR8 *Destination, const CHAR8 *Source, UINTN count); +CHAR8 *AsciiStrCat(CHAR8 *Destination, const CHAR8 *Source); +CHAR8 *AsciiStrCpy(CHAR8 *Destination, const CHAR8 *Source); +UINTN AsciiStrDecimalToUintn(const CHAR8 *String); -- cgit v1.2.3