From: Vadim Zeitlin Date: Mon, 30 Sep 2013 23:49:05 +0000 (+0000) Subject: MinGW-w64 provides isfinite() in both 32 and 64 bit builds. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/866a7cd7caa8470f456b4868374c9a692943dd3e MinGW-w64 provides isfinite() in both 32 and 64 bit builds. So use __MINGW64_TOOLCHAIN__ to test for it and not __MINGW64__, which is only defined in 64 bits. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/math.h b/include/wx/math.h index 2787163f78..89a1b94473 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -60,7 +60,7 @@ #elif defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__) #include #define wxFinite(x) _finite(x) -#elif defined(__MINGW64__) || defined(__clang__) +#elif defined(__MINGW64_TOOLCHAIN__) || defined(__clang__) /* add more compilers with C99 support here: using C99 isfinite() is preferable to using BSD-ish finite()