mirror of
https://github.com/curl/curl.git
synced 2026-07-26 02:57:15 +03:00
CMake: Put "winsock2.h" before "windows.h" during configure checks
"windows.h" includes "winsock.h" what causes many redefinition errors if "winsock2.h" is included afterwards and can cause build to fail.
This commit is contained in:
parent
0110cced2a
commit
7c478cad57
1 changed files with 1 additions and 1 deletions
|
|
@ -10,8 +10,8 @@ endmacro(add_header_include)
|
|||
|
||||
set(signature_call_conv)
|
||||
if(HAVE_WINDOWS_H)
|
||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
||||
add_header_include(HAVE_WINSOCK2_H "winsock2.h")
|
||||
add_header_include(HAVE_WINDOWS_H "windows.h")
|
||||
add_header_include(HAVE_WINSOCK_H "winsock.h")
|
||||
set(_source_epilogue
|
||||
"${_source_epilogue}\n#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue