mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
use WIN32_LEAN_AND_MEAN project-wise to silent warnings on windows about winsock2.h and windows.h
This commit is contained in:
parent
694644ac8b
commit
37aed03df2
@ -167,6 +167,7 @@ if(UNIX)
|
|||||||
endif()
|
endif()
|
||||||
elseif(WIN32 OR MINGW)
|
elseif(WIN32 OR MINGW)
|
||||||
set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-windows.c)
|
set(LIBTUNTAP_IMPL ${TT_ROOT}/tuntap-windows.c)
|
||||||
|
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "What operating system _are_ you building on/for?")
|
message(FATAL_ERROR "What operating system _are_ you building on/for?")
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define VC_EXTRALEAN
|
#define VC_EXTRALEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user