From 9f83f67221814dab0477c3970fa5f618ac1e2a2b Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 27 Feb 2025 10:39:13 +0200 Subject: [PATCH] common : fix build min/max (#2845) * common : try to fix build * cont : try another fix --- examples/common.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/common.cpp b/examples/common.cpp index ec1fa191..f114e84d 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -7,6 +7,12 @@ #define STB_VORBIS_HEADER_ONLY #include "stb_vorbis.c" /* Enables Vorbis decoding. */ +#ifdef _WIN32 +#ifndef NOMINMAX + #define NOMINMAX +#endif +#endif + #define MA_NO_DEVICE_IO #define MA_NO_THREADING #define MA_NO_ENCODING @@ -17,11 +23,11 @@ #include "miniaudio.h" #include +#include #include #include -#include #include -#include +#include #include #if defined(_MSC_VER)