Merge pull request #283 from nyq/nyq-fix-min-max-conflicts

Prevent min/max conflicts between windows.h and std namespace
This commit is contained in:
Martin Raiber 2023-09-28 20:00:07 +02:00 committed by GitHub
commit a23a38bf53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,12 @@ extern "C" {
#if defined(_MSC_VER) || defined(__MINGW64__) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW64__) || defined(__MINGW32__)
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#ifndef __cplusplus
#define MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h> #include <windows.h>
static WCHAR* mz_utf8z_to_widechar(const char* str) static WCHAR* mz_utf8z_to_widechar(const char* str)