Commit 2019698b by Benjamin Kosnik Committed by Benjamin Kosnik

compatibility-ldbl.cc: Include tr1/functional.

2009-08-13  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility-ldbl.cc: Include tr1/functional.

From-SVN: r150731
parent 75e1cd80
2009-08-13 Benjamin Kosnik <bkoz@redhat.com>
* src/compatibility-ldbl.cc: Include tr1/functional.
2009-08-12 Benjamin Kosnik <bkoz@redhat.com> 2009-08-12 Benjamin Kosnik <bkoz@redhat.com>
* src/compatibility-ldbl.cc: Add explicit namespace scope. * src/compatibility-ldbl.cc: Add explicit namespace scope.
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
#include <locale> #include <locale>
#include <tr1/functional>
#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
...@@ -31,8 +32,6 @@ ...@@ -31,8 +32,6 @@
#error "compatibility-ldbl.cc must be compiled with -mlong-double-64" #error "compatibility-ldbl.cc must be compiled with -mlong-double-64"
#endif #endif
#define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
namespace std namespace std
{ {
#define C char #define C char
...@@ -67,7 +66,9 @@ namespace std ...@@ -67,7 +66,9 @@ namespace std
#endif #endif
} }
// For std::tr1::hash<long double>::operator () // For std::tr1::hash<long double>::operator()
#define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
namespace std namespace std
{ {
namespace tr1 namespace tr1
...@@ -76,8 +77,8 @@ namespace std ...@@ -76,8 +77,8 @@ namespace std
} }
} }
// std::tr1::hash<long double>::operator () // std::tr1::hash<long double>::operator()
// and std::hash<long double>::operator () // and std::hash<long double>::operator()
// are the same, no need to duplicate them. // are the same, no need to duplicate them.
extern "C" void _ZNKSt4hashIeEclEe (void) extern "C" void _ZNKSt4hashIeEclEe (void)
__attribute__((alias ("_ZNKSt3tr14hashIeEclEe"))); __attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment