From d10aca7de33a15edc76bc368d957270809749087 Mon Sep 17 00:00:00 2001 From: TriceHelix <81759026+TriceHelix@users.noreply.github.com> Date: Sat, 21 Aug 2021 19:47:09 +0200 Subject: [PATCH] Define NOMINMAX macro error prevention (#7) Including Windows.h can cause a lot of errors with min and max macros --- include/fbow/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fbow/cpu.h b/include/fbow/cpu.h index 3cba41d..c93331a 100644 --- a/include/fbow/cpu.h +++ b/include/fbow/cpu.h @@ -36,6 +36,7 @@ THE SOFTWARE. #else #if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86) # if _WIN32 +#define NOMINMAX #include #include # elif defined(__GNUC__) || defined(__clang__)