]> granicus.if.org Git - clang/commitdiff
Define va_copy when in C++0x mode; C++0x picked it up from C99.
authorDouglas Gregor <dgregor@apple.com>
Mon, 20 Jun 2011 15:03:22 +0000 (15:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 20 Jun 2011 15:03:22 +0000 (15:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/stdarg.h

index c36ab12019fe8fd1ff1eb7727ffb325bf6546369..2957bf058ea8ff35fc275df0857aaaf3a5c85789 100644 (file)
@@ -39,7 +39,7 @@ typedef __builtin_va_list va_list;
  */
 #define __va_copy(d,s) __builtin_va_copy(d,s)
 
-#if __STDC_VERSION__ >= 199900L || !defined(__STRICT_ANSI__)
+#if __STDC_VERSION__ >= 199900L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__)
 #define va_copy(dest, src)  __builtin_va_copy(dest, src)
 #endif