diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2009-08-14 01:45:36 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2009-08-14 01:45:36 +0000 |
commit | 2019698b6b80f6922acd6b60a49186d7b04c3571 (patch) | |
tree | 0194e54069edee38e4d8ebdd78f609d3f9172233 /libstdc++-v3/src/compatibility-ldbl.cc | |
parent | 75e1cd805ee156c959696321eefde3a2ed83e981 (diff) | |
download | gcc-2019698b6b80f6922acd6b60a49186d7b04c3571.zip gcc-2019698b6b80f6922acd6b60a49186d7b04c3571.tar.gz gcc-2019698b6b80f6922acd6b60a49186d7b04c3571.tar.bz2 |
compatibility-ldbl.cc: Include tr1/functional.
2009-08-13 Benjamin Kosnik <bkoz@redhat.com>
* src/compatibility-ldbl.cc: Include tr1/functional.
From-SVN: r150731
Diffstat (limited to 'libstdc++-v3/src/compatibility-ldbl.cc')
-rw-r--r-- | libstdc++-v3/src/compatibility-ldbl.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libstdc++-v3/src/compatibility-ldbl.cc b/libstdc++-v3/src/compatibility-ldbl.cc index 79917d9..b3db735 100644 --- a/libstdc++-v3/src/compatibility-ldbl.cc +++ b/libstdc++-v3/src/compatibility-ldbl.cc @@ -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 @@ namespace std #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 @@ namespace std } } -// 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"))); |