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