diff --git a/tests/allheaders.cpp b/tests/allheaders.cpp index 2663573da1..87cd9d58f3 100644 --- a/tests/allheaders.cpp +++ b/tests/allheaders.cpp @@ -38,18 +38,9 @@ #include "catch.hpp" -#if defined(__WXMSW__) - #include - - // Avoid warnings about redeclaring standard functions such as chmod() in - // various standard headers when using MinGW/Cygwin. - #if defined(__MINGW32__) || defined(__CYGWIN__) - #include - #include - #include - #include - #endif -#elif defined(__WXQT__) +#if defined(__WXQT__) + // Include this one before enabling the warnings as doing it later, as it + // happens when it's included from wx/fontutil.h, results in -Wsign-promo. #include #endif