This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] fixup ldbl compat issues
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 13 Aug 2009 18:42:04 -0700
- Subject: Re: [v3] fixup ldbl compat issues
- References: <20090812145911.4ce12d25@mcgee.artheist.org>
> Re: error in hash.cc, fixed with this.
Sigh. With this, hopefully.
tested x86_64/linux
-benjamin
2009-08-13 Benjamin Kosnik <bkoz@redhat.com>
* src/compatibility-ldbl.cc: Include tr1/functional.
Index: src/compatibility-ldbl.cc
===================================================================
--- src/compatibility-ldbl.cc (revision 150730)
+++ src/compatibility-ldbl.cc (working copy)
@@ -24,6 +24,7 @@
// <http://www.gnu.org/licenses/>.
#include <locale>
+#include <tr1/functional>
#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
@@ -31,8 +32,6 @@
#error "compatibility-ldbl.cc must be compiled with -mlong-double-64"
#endif
-#define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
-
namespace std
{
#define C char
@@ -67,7 +66,9 @@
#endif
}
-// For std::tr1::hash<long double>::operator ()
+// For std::tr1::hash<long double>::operator()
+#define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
+
namespace std
{
namespace tr1
@@ -76,8 +77,8 @@
}
}
-// std::tr1::hash<long double>::operator ()
-// and std::hash<long double>::operator ()
+// std::tr1::hash<long double>::operator()
+// and std::hash<long double>::operator()
// are the same, no need to duplicate them.
extern "C" void _ZNKSt4hashIeEclEe (void)
__attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));