From 2019698b6b80f6922acd6b60a49186d7b04c3571 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Fri, 14 Aug 2009 01:45:36 +0000 Subject: [PATCH] compatibility-ldbl.cc: Include tr1/functional. 2009-08-13 Benjamin Kosnik * src/compatibility-ldbl.cc: Include tr1/functional. From-SVN: r150731 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/src/compatibility-ldbl.cc | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index bb2cd4a05d3e..a4576d4f8ad8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2009-08-13 Benjamin Kosnik + + * src/compatibility-ldbl.cc: Include tr1/functional. + 2009-08-12 Benjamin Kosnik * src/compatibility-ldbl.cc: Add explicit namespace scope. diff --git a/libstdc++-v3/src/compatibility-ldbl.cc b/libstdc++-v3/src/compatibility-ldbl.cc index 79917d9f1cc6..b3db73592e47 100644 --- a/libstdc++-v3/src/compatibility-ldbl.cc +++ b/libstdc++-v3/src/compatibility-ldbl.cc @@ -24,6 +24,7 @@ // . #include +#include #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::operator () +// For std::tr1::hash::operator() +#define _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL + namespace std { namespace tr1 @@ -76,8 +77,8 @@ namespace std } } -// std::tr1::hash::operator () -// and std::hash::operator () +// std::tr1::hash::operator() +// and std::hash::operator() // are the same, no need to duplicate them. extern "C" void _ZNKSt4hashIeEclEe (void) __attribute__((alias ("_ZNKSt3tr14hashIeEclEe")));