From 672efea2e97048c4d923ecaac1040ef3b11b897c Mon Sep 17 00:00:00 2001 From: Yaron Keren <yaron.keren@gmail.com> Date: Wed, 2 Jul 2014 15:25:03 +0000 Subject: [PATCH] Added standard macro guard. In case __GNUC_VA_LIST was not defined or defined identically before there will not be any change in functionality. MinGW-w64 defines __GNUC_VA_LIST as #define __GNUC_VA_LIST which is different than the definition here, causing a warning without the guard. llvm-svn: 212183 --- clang/lib/Headers/stdarg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Headers/stdarg.h b/clang/lib/Headers/stdarg.h index 6110a06641cb..a57e18364871 100644 --- a/clang/lib/Headers/stdarg.h +++ b/clang/lib/Headers/stdarg.h @@ -44,7 +44,9 @@ typedef __builtin_va_list va_list; #endif /* Hack required to make standard headers work, at least on Ubuntu */ +#ifndef __GNUC_VA_LIST #define __GNUC_VA_LIST 1 +#endif typedef __builtin_va_list __gnuc_va_list; #endif /* __STDARG_H */