]> git.saurik.com Git - wxWidgets.git/commitdiff
use C99 isfinite() for 64 bit mingw32 instead of BSD-ish finite() which it apparently...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Aug 2008 12:55:43 +0000 (12:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Aug 2008 12:55:43 +0000 (12:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/math.h

index 121a59062b47ea00067c35552f634e62ddf777b3..611971d471e5d04ee3bc62bd36f9636f0aec3fbb 100644 (file)
 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
     #include <float.h>
     #define wxFinite(x) _finite(x)
+#elif defined(__MINGW64__)
+    // add more compilers with C99 support here: using C99 isfinite() is
+    // preferable to using BSD-ish finite()
+    #define wxFinite(x) isfinite(x)
 #elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
       defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
       defined(__HPUX__)||defined(__MWERKS__) ) && ( !defined(wxOSX_USE_IPHONE) || wxOSX_USE_IPHONE == 0 )