mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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:
parent
ae9742be10
commit
e2a74d7247
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue