From 73ef45bffd2b1bbf095aa5a9271565b26db3543f Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 1 Aug 2018 19:55:29 +0200 Subject: [PATCH] MSVC build fix --- core/deps/xbrz/xbrz.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/deps/xbrz/xbrz.h b/core/deps/xbrz/xbrz.h index e1bce0502..431581229 100644 --- a/core/deps/xbrz/xbrz.h +++ b/core/deps/xbrz/xbrz.h @@ -21,6 +21,11 @@ #include #include "xbrz_config.h" +// Guard against msvc stupidity +#ifdef max +#undef max +#endif + namespace xbrz { /*