diff --git a/rrutil.h b/rrutil.h index e4ce70c4..1df569b1 100644 --- a/rrutil.h +++ b/rrutil.h @@ -16,12 +16,10 @@ #ifndef __RRUTIL_H__ #define __RRUTIL_H__ -#ifdef _WIN32 - #include - #ifndef __MINGW32__ - #define snprintf(str, n, format, ...) \ - _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__) - #endif +#if defined(_WIN32) && !defined(__MINGW32__) + #include + #define snprintf(str, n, format, ...) \ + _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__) #else #include #define stricmp strcasecmp