diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-01-29 12:29:42 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-01-29 12:29:42 +0000 |
commit | 382ead25f462c0275ae0a0e1c6b0614405fa71c5 (patch) | |
tree | 1da03108d248585074c2fed1b1840c343865ea19 /gcc/ginclude | |
parent | d4abfcc561b77aa2ac7328d965b08efd1b2561b2 (diff) | |
download | gcc-382ead25f462c0275ae0a0e1c6b0614405fa71c5.zip gcc-382ead25f462c0275ae0a0e1c6b0614405fa71c5.tar.gz gcc-382ead25f462c0275ae0a0e1c6b0614405fa71c5.tar.bz2 |
Test __cplusplus instead of __GXX_EXPERIMENTAL_CXX0X__
* ginclude/stdarg.h: Test __cplusplus instead of
__GXX_EXPERIMENTAL_CXX0X__.
From-SVN: r232977
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/stdarg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 74a234d..6525152 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -47,7 +47,8 @@ typedef __builtin_va_list __gnuc_va_list; #define va_start(v,l) __builtin_va_start(v,l) #define va_end(v) __builtin_va_end(v) #define va_arg(v,l) __builtin_va_arg(v,l) -#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L || defined(__GXX_EXPERIMENTAL_CXX0X__) +#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L \ + || __cplusplus + 0 >= 201103L #define va_copy(d,s) __builtin_va_copy(d,s) #endif #define __va_copy(d,s) __builtin_va_copy(d,s) |