From 37e3e081c62b38bb4eff9553faadaea765f624b7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 27 Nov 2019 15:18:32 +0000 Subject: Update microsoft_craziness.h to work correctly with the rest of the codebase (and not use WIN32_LEAN_AND_MEAN) --- src/common.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common.cpp') diff --git a/src/common.cpp b/src/common.cpp index b034ad720..f47ad69eb 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -7,6 +7,13 @@ #include #endif +#if defined(GB_SYSTEM_WINDOWS) +#define NOMINMAX 1 +#include +#undef NOMINMAX +#endif + +#define GB_WINDOWS_H_INCLUDED #define GB_IMPLEMENTATION #include "gb/gb.h" -- cgit v1.2.3