diff --git a/include/wx/math.h b/include/wx/math.h index 121a59062b..611971d471 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -57,6 +57,10 @@ #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__) #include #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 )