X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ce18df82e67d86099db8a162c4388d891cbcc6c..038c99477c8cd14013cef892517012717c47df35:/include/wx/math.h diff --git a/include/wx/math.h b/include/wx/math.h index 98477e604e..c1dda9e6d2 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -62,7 +62,12 @@ add more compilers with C99 support here: using C99 isfinite() is preferable to using BSD-ish finite() */ - #define wxFinite(x) isfinite(x) + #if defined(_GLIBCXX_CMATH) || defined(_LIBCPP_CMATH) + // these headers #undef isfinite + #define wxFinite(x) std::isfinite(x) + #else + #define wxFinite(x) isfinite(x) + #endif #elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \ defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \ defined(__HPUX__) ) && ( !defined(wxOSX_USE_IPHONE) || wxOSX_USE_IPHONE == 0 ) @@ -107,8 +112,9 @@ } #else /* !__INTELC__ */ - + wxGCC_WARNING_SUPPRESS(float-equal) inline bool wxIsSameDouble(double x, double y) { return x == y; } + wxGCC_WARNING_RESTORE(float-equal) #endif /* __INTELC__/!__INTELC__ */