diff --git a/portable/MSVC-MingW/port.c b/portable/MSVC-MingW/port.c index 540c4a4bc5..d992c4d3c0 100644 --- a/portable/MSVC-MingW/port.c +++ b/portable/MSVC-MingW/port.c @@ -39,12 +39,11 @@ #include #endif -#include - -#ifdef __GNUC__ - #include "mmsystem.h" -#else +#ifdef _MSC_VER + #include #pragma comment(lib, "winmm.lib") +#else + #include #endif #define portMAX_INTERRUPTS ( ( uint32_t ) sizeof( uint32_t ) * 8UL ) /* The number of bits in an uint32_t. */