From: Benjamin Kosnik Date: Mon, 14 Apr 2008 19:22:27 +0000 (+0000) Subject: c++config: Guard _LDBL_ macros with __cplusplus. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=682db6f9c015c7c4abf53493ac87b25b6ea95046;p=gcc.git c++config: Guard _LDBL_ macros with __cplusplus. 2008-04-14 Benjamin Kosnik * include/bits/c++config: Guard _LDBL_ macros with __cplusplus. From-SVN: r134288 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0c6e5206916..358da48de70 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2008-04-14 Benjamin Kosnik + + * include/bits/c++config: Guard _LDBL_ macros with __cplusplus. + 2008-04-10 Benjamin Kosnik * doc/html/*: Regenerate. diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index e38cfe05184..498bc320265 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 }