diff --git a/openmpt123/openmpt123.cpp b/openmpt123/openmpt123.cpp index 70d21f3397b..646adaf9d40 100644 --- a/openmpt123/openmpt123.cpp +++ b/openmpt123/openmpt123.cpp @@ -37,7 +37,11 @@ static const char * const license = #include "openmpt123_config.hpp" -#if defined(__MINGW32__) && !defined(__MINGW64__) +#include "mpt/base/detect_compiler.hpp" +#include "mpt/base/detect_os.hpp" +#include "mpt/base/detect_quirks.hpp" + +#if defined(MPT_LIBC_QUIRK_REQUIRES_SYS_TYPES_H) #include #endif @@ -90,7 +94,7 @@ static const char * const license = #include #include #include -#if defined(__MINGW32__) && !defined(__MINGW64__) +#if MPT_LIBC_MINGW #include #endif #include