From 37aed03df23b6db47bd885d22297189881156531 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Fri, 3 Aug 2018 11:33:48 +1000 Subject: [PATCH] use WIN32_LEAN_AND_MEAN project-wise to silent warnings on windows about winsock2.h and windows.h --- CMakeLists.txt | 1 + include/llarp/logger.hpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38e09af52..c64521809 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,7 @@ if(UNIX) endif() elseif(WIN32 OR MINGW) set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-windows.c) + add_definitions(-DWIN32_LEAN_AND_MEAN) else() message(FATAL_ERROR "What operating system _are_ you building on/for?") endif(UNIX) diff --git a/include/llarp/logger.hpp b/include/llarp/logger.hpp index 5084f85e7..543fdaf05 100644 --- a/include/llarp/logger.hpp +++ b/include/llarp/logger.hpp @@ -9,7 +9,6 @@ #include #ifdef _WIN32 #define VC_EXTRALEAN -#define WIN32_LEAN_AND_MEAN #include #endif