aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests/base/complex.h
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-06-21 15:27:29 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-06-21 15:27:29 +0000
commitbabc47283189c5cae91cfe13fd20b0633145655c (patch)
treeedfae00a397941520330c85dfbe0358fbc178307 /fixincludes/tests/base/complex.h
parent602a7ec025a239f80d9857fc4c80dfd8b961910e (diff)
downloadgcc-babc47283189c5cae91cfe13fd20b0633145655c.zip
gcc-babc47283189c5cae91cfe13fd20b0633145655c.tar.gz
gcc-babc47283189c5cae91cfe13fd20b0633145655c.tar.bz2
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
Diffstat (limited to 'fixincludes/tests/base/complex.h')
-rw-r--r--fixincludes/tests/base/complex.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fixincludes/tests/base/complex.h b/fixincludes/tests/base/complex.h
index 9a54e8c..b3fe27a 100644
--- a/fixincludes/tests/base/complex.h
+++ b/fixincludes/tests/base/complex.h
@@ -33,3 +33,13 @@
#undef I
#define I _Complex_I
#endif /* SOLARIS_COMPLEX_CHECK */
+
+
+#if defined( SOLARIS_COMPLEX_CXX_CHECK )
+#ifdef __cplusplus
+extern "C" {
+#endif
+#ifdef __cplusplus
+}
+#endif
+#endif /* SOLARIS_COMPLEX_CXX_CHECK */