1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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.
This commit is contained in:
David Chisnall 2013-07-23 10:23:43 +00:00
parent ae9742be10
commit e2a74d7247
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253563

View File

@ -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