MinGW: libuv needs -D_WIN32_WINNT=0x0600

Without this compilation fails due to a missing symbol: SRWLOCK in libuv
headers. _WIN32_WINNT defines the Windows header version that is to be used,
and it seems libuv requires this version. See

    b471b33da8
This commit is contained in:
Rui Abreu Ferreira 2015-02-03 13:31:33 +00:00 committed by Seth Jackson
parent 074d3dc1f3
commit bd529ea3f3

View File

@ -197,6 +197,7 @@ endif()
if(MINGW)
# Use POSIX compatible stdio in Mingw
add_definitions(-D__USE_MINGW_ANSI_STDIO)
add_definitions(-D_WIN32_WINNT=0x0600)
endif()
# OpenBSD's GCC (4.2.1) doesn't have -Wvla