r212183 - Added standard macro guard. In case __GNUC_VA_LIST was not
Yaron Keren
yaron.keren at gmail.com
Wed Jul 2 08:25:03 PDT 2014
Author: yrnkrn
Date: Wed Jul 2 10:25:03 2014
New Revision: 212183
URL: http://llvm.org/viewvc/llvm-project?rev=212183&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Headers/stdarg.h
Modified: cfe/trunk/lib/Headers/stdarg.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stdarg.h?rev=212183&r1=212182&r2=212183&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/stdarg.h (original)
+++ cfe/trunk/lib/Headers/stdarg.h Wed Jul 2 10:25:03 2014
@@ -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 */
More information about the cfe-commits
mailing list