From 6bb77323fd0d116108c640faeada710f43856184 Mon Sep 17 00:00:00 2001 From: pongo1231 Date: Tue, 21 Jan 2025 23:42:22 +0000 Subject: [PATCH] ChaosMod: Define WIN32_LEAN_AND_MEAN through CMake --- ChaosMod/CMakeLists.txt | 1 + ChaosMod/Util/CrashHandler.h | 1 - ChaosMod/Util/Logging.h | 1 - ChaosMod/stdafx.h | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ChaosMod/CMakeLists.txt b/ChaosMod/CMakeLists.txt index a7e6d3ec1..0ca1c7c4b 100644 --- a/ChaosMod/CMakeLists.txt +++ b/ChaosMod/CMakeLists.txt @@ -15,6 +15,7 @@ set_target_properties(ChaosMod PROPERTIES CXX_STANDARD 20) target_compile_definitions(ChaosMod PUBLIC $<$:CHAOSDEBUG>) target_compile_definitions(ChaosMod PUBLIC NDEBUG) +target_compile_definitions(ChaosMod PUBLIC WIN32_LEAN_AND_MEAN) set(include_dirs ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/../vendor ${PROJECT_SOURCE_DIR}/../vendor/lua/include) set(link_libs shv minhook lua54 winmm d3dcompiler xinput) diff --git a/ChaosMod/Util/CrashHandler.h b/ChaosMod/Util/CrashHandler.h index 3084e0099..e86656493 100644 --- a/ChaosMod/Util/CrashHandler.h +++ b/ChaosMod/Util/CrashHandler.h @@ -2,7 +2,6 @@ #include "File.h" -#define WIN32_LEAN_AND_MEAN #include #include diff --git a/ChaosMod/Util/Logging.h b/ChaosMod/Util/Logging.h index 1ab9dde75..ff8e7853c 100644 --- a/ChaosMod/Util/Logging.h +++ b/ChaosMod/Util/Logging.h @@ -1,6 +1,5 @@ #pragma once -#define WIN32_LEAN_AND_MEAN #include #include diff --git a/ChaosMod/stdafx.h b/ChaosMod/stdafx.h index ce3fc88e2..9987d576d 100644 --- a/ChaosMod/stdafx.h +++ b/ChaosMod/stdafx.h @@ -16,7 +16,6 @@ #include #include -#define WIN32_LEAN_AND_MEAN #include #include