From ebdde0bc4b0ea18620b92c84be85dfc55e0b75ed Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Wed, 17 Feb 2021 00:15:54 +0000 Subject: [PATCH] Always prefer the external for MSVC compilation The __builtin_va_###() intrinsics apply only to GCC-like compilers and MSVC's 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... --- inc/efistdarg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)