From babc47283189c5cae91cfe13fd20b0633145655c Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 21 Jun 2010 15:27:29 +0000 Subject: sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++. gcc: * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++. fixincludes: * inclhack.def (solaris__restrict, solaris_complex_cxx): New fixes * fixincl.x: Regenerate. * tests/base/complex.h [SOLARIS_COMPLEX_CXX_CHECK]: New test. * tests/base/sys/feature_tests.h: New file. libstdc++-v3: * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: Add *-*-solaris2.1[0-9]* to dg-xfail-if, dg-excess-errors. From-SVN: r161089 --- gcc/ChangeLog | 5 +++++ gcc/config/sol2.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a73e94..68bb4f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-06-21 Rainer Orth + + * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define + __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++. + 2010-06-21 Nick Clifton * config/rx/rx.h (PTRDIFF_TYPE): Define. diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 98e54e6..7b7ce2b 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -99,7 +99,8 @@ along with GCC; see the file COPYING3. If not see library. */ \ if (c_dialect_cxx ()) \ { \ - builtin_define ("_XOPEN_SOURCE=500"); \ + builtin_define ("__STDC_VERSION__=199901L");\ + builtin_define ("_XOPEN_SOURCE=600"); \ builtin_define ("_LARGEFILE_SOURCE=1"); \ builtin_define ("_LARGEFILE64_SOURCE=1"); \ builtin_define ("__EXTENSIONS__"); \ -- cgit v1.1