]> granicus.if.org Git - clang/commitdiff
Place the definition of 'va_list' within a preprocessor guard. This matches the...
authorTed Kremenek <kremenek@apple.com>
Mon, 8 Mar 2010 23:13:05 +0000 (23:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 8 Mar 2010 23:13:05 +0000 (23:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98003 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stdarg.h

index bbbaff93e242ec90567fb2c64bf8470cc1473816..c36ab12019fe8fd1ff1eb7727ffb325bf6546369 100644 (file)
 #ifndef __STDARG_H
 #define __STDARG_H
 
+#ifndef _VA_LIST
 typedef __builtin_va_list va_list;
+#define _VA_LIST
+#endif
 #define va_start(ap, param) __builtin_va_start(ap, param)
 #define va_end(ap)          __builtin_va_end(ap)
 #define va_arg(ap, type)    __builtin_va_arg(ap, type)