diff options
author | theraven <theraven@FreeBSD.org> | 2013-07-23 10:23:43 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2013-07-23 10:23:43 +0000 |
commit | 9a3acc6b30529900744f14a99cdbd2fcfad2d49b (patch) | |
tree | fe855d8d15ee7b0a08e8951b7cdd958fe4d0b37b | |
parent | d50608e9d480e9bbbc64315082cc278266806d00 (diff) | |
download | FreeBSD-src-9a3acc6b30529900744f14a99cdbd2fcfad2d49b.zip FreeBSD-src-9a3acc6b30529900744f14a99cdbd2fcfad2d49b.tar.gz |
Add isnan() and isinf() to the global namespace in libstdc++'s <cmath>.
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.
-rw-r--r-- | contrib/libstdc++/include/c_std/std_cmath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libstdc++/include/c_std/std_cmath.h b/contrib/libstdc++/include/c_std/std_cmath.h index 897290a..a5cb69a 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 |