Test __cplusplus instead of __GXX_EXPERIMENTAL_CXX0X__

* ginclude/stdarg.h: Test __cplusplus instead of
	__GXX_EXPERIMENTAL_CXX0X__.

From-SVN: r232977
This commit is contained in:
Jonathan Wakely 2016-01-29 12:29:42 +00:00 committed by Jonathan Wakely
parent d4abfcc561
commit 382ead25f4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-01-29 Jonathan Wakely <jwakely@redhat.com>
* ginclude/stdarg.h: Test __cplusplus instead of
__GXX_EXPERIMENTAL_CXX0X__.
2016-01-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/69547

View File

@ -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)