aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-20 15:03:22 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-20 15:03:22 +0000
commit6fe6bac2ad79dee2fb2077c8959b1bf8679fe1b7 (patch)
tree3f4c0323e5fbad01d337c9de5d61066f785d6636 /lib
parent0678899e0d619df03eae2e2d43c3fe1fa958d03a (diff)
Define va_copy when in C++0x mode; C++0x picked it up from C99.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Headers/stdarg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Headers/stdarg.h b/lib/Headers/stdarg.h
index c36ab12019..2957bf058e 100644
--- a/lib/Headers/stdarg.h
+++ b/lib/Headers/stdarg.h
@@ -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