diff --git a/include/wx/math.h b/include/wx/math.h index ba298f17b0..c6aec42c4e 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -15,6 +15,17 @@ #include "wx/defs.h" +#ifdef wxNEEDS_STRICT_ANSI_WORKAROUNDS + /* + In addition to declaring _finite() ourselves below, we also must work + around a compilation error in MinGW standard header itself, see + https://sourceforge.net/p/mingw/bugs/2250/ + */ + #ifndef __NO_INLINE__ + #define __NO_INLINE__ + #endif +#endif + #include #ifndef M_PI