From 6b713b11c496f000b1a49cf80a1efb8c92e7a159 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 4 Jan 2020 16:30:23 +0100 Subject: [PATCH] Added a NOMINMAX define for windows builds --- src/sfizz/Config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sfizz/Config.h b/src/sfizz/Config.h index 5f949be8..1651ff3d 100644 --- a/src/sfizz/Config.h +++ b/src/sfizz/Config.h @@ -23,6 +23,11 @@ #pragma once +#ifdef _WIN32 +// There's a spurious min/max function in MSVC that makes everything go badly... +#define NOMINMAX +#endif + namespace sfz { enum class Oversampling: int { x1 = 1,