From e2a74d72479333ba6cb7ac112e7f2972989614a2 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 23 Jul 2013 10:23:43 +0000 Subject: [PATCH] Add isnan() and isinf() to the global namespace in libstdc++'s . The standard (n3242, section 17.6.1.1, paragraph 4) says that, because these are declared as macros in the C specification (even though they are implemented as functions in the C++ library) they should be in the global namespace. A surprising number of configure checks rely on this. It was broken by recent cleanups to math.h. --- contrib/libstdc++/include/c_std/std_cmath.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/libstdc++/include/c_std/std_cmath.h b/contrib/libstdc++/include/c_std/std_cmath.h index 897290ac089..a5cb69a4891 100644 --- a/contrib/libstdc++/include/c_std/std_cmath.h +++ b/contrib/libstdc++/include/c_std/std_cmath.h @@ -589,6 +589,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) { return ::__gnu_cxx::__capture_isunordered(__f1, __f2); } _GLIBCXX_END_NAMESPACE +using std::isnan; +using std::isinf; #endif /* _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC */ #endif