2008-04-14 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2008 19:22:27 +0000 (19:22 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2008 19:22:27 +0000 (19:22 +0000)
* include/bits/c++config: Guard _LDBL_ macros with __cplusplus.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134288 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0c6e520..358da48 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 e38cfe0..498bc32 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 }