diff options
author | Pete Batard <pete@akeo.ie> | 2021-02-17 00:15:54 +0000 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2021-02-18 10:09:07 -0500 |
commit | ebdde0bc4b0ea18620b92c84be85dfc55e0b75ed (patch) | |
tree | b9603922add15218263455ece9e3faf8ba815670 /inc/efistdarg.h | |
parent | 7cc4f3a20c1439556703796438f226e572bd5ec1 (diff) | |
download | gnu-efi-ebdde0bc4b0ea18620b92c84be85dfc55e0b75ed.tar.gz |
Always prefer the external <stdarg.h> for MSVC compilation
The __builtin_va_###() intrinsics apply only to GCC-like compilers and
MSVC's <stdarg.h> works just fine with gnu-efi.
Without this patch, one has to define GNU_EFI_USE_EXTERNAL_STDARG to
make gnu-efi work with a Microsoft toolchain, which is annoying...
Diffstat (limited to 'inc/efistdarg.h')
-rw-r--r-- | inc/efistdarg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/efistdarg.h b/inc/efistdarg.h index bb04b31..8312c3d 100644 --- a/inc/efistdarg.h +++ b/inc/efistdarg.h @@ -19,7 +19,7 @@ Revision History --*/ -#ifndef GNU_EFI_USE_EXTERNAL_STDARG +#if !defined(GNU_EFI_USE_EXTERNAL_STDARG) && !defined(_MSC_VER) typedef __builtin_va_list va_list; # define va_start(v,l) __builtin_va_start(v,l) |