From 0ecf241bebfb45344beb30d6bc477ea744cb7ab1 Mon Sep 17 00:00:00 2001 From: Kylart Date: Thu, 7 Nov 2019 15:44:08 +0100 Subject: [PATCH] Added definitions in Cmake --- bindings/CMakeLists.txt | 3 +++ bindings/src/torrent/bind.h | 1 - bindings/src/win_delay_load_hook.cc | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt index 98699d7..e2ebd8a 100644 --- a/bindings/CMakeLists.txt +++ b/bindings/CMakeLists.txt @@ -23,8 +23,11 @@ if (MSVC) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${BOOST_LIBRARYDIR}) + + add_compile_definitions(WIN32_LEAN_AND_MEAN) endif(MSVC) + # LibGCrypt list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib/libtorrent/cmake/Modules) diff --git a/bindings/src/torrent/bind.h b/bindings/src/torrent/bind.h index e2187a3..0a699e3 100644 --- a/bindings/src/torrent/bind.h +++ b/bindings/src/torrent/bind.h @@ -16,7 +16,6 @@ #include -#include "windows.h" #include "client_session.h" #include "version.h" diff --git a/bindings/src/win_delay_load_hook.cc b/bindings/src/win_delay_load_hook.cc index 2c7b3f5..a43882d 100644 --- a/bindings/src/win_delay_load_hook.cc +++ b/bindings/src/win_delay_load_hook.cc @@ -16,9 +16,7 @@ #ifdef _MSC_VER -#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN -#endif #include #include