From b22e31c302f629c6455ee0a1177c7ac40236e049 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 6 May 2022 00:22:26 +1000 Subject: [PATCH] Common: Add WIN32_LEAN_AND_MEAN and NOMINMAX to RedtapeWindows.h Otherwise, it doesn't get set for cmake. --- common/RedtapeWindows.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/RedtapeWindows.h b/common/RedtapeWindows.h index 6caa925645..271d752217 100644 --- a/common/RedtapeWindows.h +++ b/common/RedtapeWindows.h @@ -14,10 +14,20 @@ */ #pragma once + #ifdef _WIN32 + +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif + #include #include #include #include #include + #endif