[cfe-commits] r133438 - /cfe/trunk/lib/Headers/stdarg.h

Douglas Gregor dgregor at apple.com
Mon Jun 20 08:03:22 PDT 2011


Author: dgregor
Date: Mon Jun 20 10:03:22 2011
New Revision: 133438

URL: http://llvm.org/viewvc/llvm-project?rev=133438&view=rev
Log:
Define va_copy when in C++0x mode; C++0x picked it up from C99.

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=133438&r1=133437&r2=133438&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/stdarg.h (original)
+++ cfe/trunk/lib/Headers/stdarg.h Mon Jun 20 10:03:22 2011
@@ -39,7 +39,7 @@
  */
 #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
 





More information about the cfe-commits mailing list