Skip to content

Commit

Permalink
Yes, we want to define _WIN32_WINNT as 0x0600; do so.
Browse files Browse the repository at this point in the history
Not doing so causes warnings about inet_ntop() not being declared.
  • Loading branch information
guyharris committed Nov 6, 2019
1 parent a090f9e commit 9d50007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ endif(MSVC)
# a newer version of the C library, i.e. Visual Studio 2015 or
# later, as it depends on C99 features introduced in VS 2015.
#
#if(MINGW)
# add_definitions(-D_WIN32_WINNT=0x0600)
#endif(MINGW)
if(MINGW)
add_definitions(-D_WIN32_WINNT=0x0600)
endif(MINGW)

#
# Build all runtimes in the top-level binary directory; that way,
Expand Down

0 comments on commit 9d50007

Please sign in to comment.