aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp7
1 files changed, 7 insertions, 0 deletions
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 <intrin.h>
#endif
+#if defined(GB_SYSTEM_WINDOWS)
+#define NOMINMAX 1
+#include <windows.h>
+#undef NOMINMAX
+#endif
+
+#define GB_WINDOWS_H_INCLUDED
#define GB_IMPLEMENTATION
#include "gb/gb.h"