c++config: Guard _LDBL_ macros with __cplusplus.
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 14 Apr 2008 19:22:27 +0000 (19:22 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 14 Apr 2008 19:22:27 +0000 (19:22 +0000)
2008-04-14  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/c++config: Guard _LDBL_ macros with __cplusplus.

From-SVN: r134288

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config

index 0c6e5206916bd26b958ca634ff6bbd0999d6210f..358da48de70a13666a9179acd301e759c3423c1a 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/c++config: Guard _LDBL_ macros with __cplusplus.
+       
 2008-04-10  Benjamin Kosnik  <bkoz@redhat.com>
 
        * doc/html/*: Regenerate.
index e38cfe0518436b9fbd2fcc54974cc5c5087b37ac..498bc3202653a70b64473628dea1aaa89a54a4ac 100644 (file)
@@ -236,7 +236,8 @@ namespace std
 // XXX GLIBCXX_ABI Deprecated
 // Namespace associations for long double 128 mode.
 _GLIBCXX_BEGIN_NAMESPACE(std)
-#if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
+#if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__ \
+  && defined __cplusplus
 # define _GLIBCXX_LDBL_NAMESPACE __gnu_cxx_ldbl128::
 # define _GLIBCXX_BEGIN_LDBL_NAMESPACE namespace __gnu_cxx_ldbl128 {
 # define _GLIBCXX_END_LDBL_NAMESPACE }