Added definitions in Cmake

This commit is contained in:
Kylart 2019-11-07 15:44:08 +01:00
parent 58186bf52d
commit 0ecf241beb
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -16,7 +16,6 @@
#include <napi.h>
#include "windows.h"
#include "client_session.h"
#include "version.h"

View File

@ -16,9 +16,7 @@
#ifdef _MSC_VER
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <Shlwapi.h>