diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2008-04-14 19:22:27 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2008-04-14 19:22:27 +0000 |
commit | 682db6f9c015c7c4abf53493ac87b25b6ea95046 (patch) | |
tree | 84a4931cb4ed3f6aa26d04af98f7472c8f5c9b75 | |
parent | 4c9db6e07aba115c21ab02068ccc332ce691775e (diff) | |
download | gcc-682db6f9c015c7c4abf53493ac87b25b6ea95046.zip gcc-682db6f9c015c7c4abf53493ac87b25b6ea95046.tar.gz gcc-682db6f9c015c7c4abf53493ac87b25b6ea95046.tar.bz2 |
c++config: Guard _LDBL_ macros with __cplusplus.
2008-04-14 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config: Guard _LDBL_ macros with __cplusplus.
From-SVN: r134288
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/c++config | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0c6e520..358da48 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index e38cfe0..498bc32 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -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 } |