mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
cmake: Fix passing _WINSOCKAPI_ macro to compiler
Define _WINSOCKAPI_ blank rather than to 1 in order to match the value used by Microsoft's winsock header files. Closes https://github.com/curl/curl/pull/1195
This commit is contained in:
parent
62e67c7772
commit
192466e086
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ include (CMakeDependentOption)
|
|||
|
||||
# On windows preload settings
|
||||
if(WIN32)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_")
|
||||
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_WINSOCKAPI_=")
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake)
|
||||
endif(WIN32)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue