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