diff --git a/miniz_zip.c b/miniz_zip.c index 3ed6a67..c58b39e 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -42,6 +42,12 @@ extern "C" { #if defined(_MSC_VER) || defined(__MINGW64__) || defined(__MINGW32__) #define WIN32_LEAN_AND_MEAN +#ifndef __cplusplus + #define MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0 +#endif +#ifndef NOMINMAX + #define NOMINMAX +#endif #include static WCHAR* mz_utf8z_to_widechar(const char* str)