diff --git a/sokol_app.h b/sokol_app.h index bd060ab91..cf52ba639 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -3263,6 +3263,8 @@ _SOKOL_PRIVATE const _sapp_gl_fbconfig* _sapp_gl_choose_fbconfig(const _sapp_gl_ #if defined(_WIN32) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX #define NOMINMAX #endif #include diff --git a/sokol_audio.h b/sokol_audio.h index 21907d495..ec6ebe671 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -469,6 +469,9 @@ inline void saudio_setup(const saudio_desc& desc) { return saudio_setup(&desc); #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif + #ifndef NOMINMAX + #define NOMINMAX + #endif #include #include #pragma comment (lib, "kernel32.lib") diff --git a/sokol_fetch.h b/sokol_fetch.h index 68ca33ed6..c416a1021 100644 --- a/sokol_fetch.h +++ b/sokol_fetch.h @@ -1002,6 +1002,9 @@ inline void sfetch_setup(const sfetch_desc_t& desc) { return sfetch_setup(&desc) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif + #ifndef NOMINMAX + #define NOMINMAX + #endif #include #define _SFETCH_PLATFORM_WINDOWS (1) #define _SFETCH_PLATFORM_EMSCRIPTEN (0) diff --git a/sokol_gfx.h b/sokol_gfx.h index 2aac9bde4..9526ba861 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -2463,7 +2463,9 @@ inline void sg_init_pass(sg_pass pass_id, const sg_pass_desc& desc) { return sg_ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif - #include + #ifndef NOMINMAX + #define NOMINMAX + #endif #include #include #if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))