浏览代码

From: David Decotigny <decot@googlers.com>
Date: Thu, 31 Jul 2014 18:19:16 -0700
Subject: [PATCH 5/5] allow to use external stdarg.h

in cases we use gnu-efi together with other libs that define stdarg.h,
break the tie by telling gnu-efi to use that stdarg.h .

Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>

Nigel Croxon 10 年之前
父节点
当前提交
6c10e225bc
共有 1 个文件被更改,包括 9 次插入4 次删除
  1. 9 4
      gnu-efi-3.0/inc/efistdarg.h

+ 9 - 4
gnu-efi-3.0/inc/efistdarg.h

@@ -19,10 +19,15 @@ Revision History
 
 --*/
 
+#ifndef GNU_EFI_USE_EXTERNAL_STDARG
 typedef __builtin_va_list va_list;
 
-#define va_start(v,l)	__builtin_va_start(v,l)
-#define va_end(v)	__builtin_va_end(v)
-#define va_arg(v,l)	__builtin_va_arg(v,l)
-#define va_copy(d,s)	__builtin_va_copy(d,s)
+# define va_start(v,l)	__builtin_va_start(v,l)
+# define va_end(v)	__builtin_va_end(v)
+# define va_arg(v,l)	__builtin_va_arg(v,l)
+# define va_copy(d,s)	__builtin_va_copy(d,s)
+#else
+# include <stdarg.h>
+#endif
+
 #endif