Skip to content

Commit

Permalink
ChaosMod: Define WIN32_LEAN_AND_MEAN through CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Jan 21, 2025
1 parent 81092df commit 6bb7732
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions ChaosMod/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set_target_properties(ChaosMod PROPERTIES CXX_STANDARD 20)

target_compile_definitions(ChaosMod PUBLIC $<$<CONFIG:Debug>: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)
Expand Down
1 change: 0 additions & 1 deletion ChaosMod/Util/CrashHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "File.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include <dbghelp.h>
Expand Down
1 change: 0 additions & 1 deletion ChaosMod/Util/Logging.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion ChaosMod/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <scripthookv/inc/main.h>
#include <scripthookv/inc/natives.h>

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include <d3d11.h>
Expand Down

0 comments on commit 6bb7732

Please sign in to comment.