]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: delete redundant macro definition `SECURITY_WIN32`
authorViktor Szakats <commit@vsz.me>
Wed, 25 Jan 2023 11:55:57 +0000 (11:55 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 25 Jan 2023 11:55:57 +0000 (11:55 +0000)
Stop explicitly defining `SECURITY_WIN32` in CMake builds.

No other build systems define this macro, because it's unconditionally
defined in `lib/curl_sspi.h` already. This is the only curl source using
the `sspi.h` and `security.h` Win32 headers, and no other Win32 headers
need this macro.

Reviewed-by: Jay Satiro
Closes #10341

CMakeLists.txt

index ffb362f9b9ae9af359fb048f5c9526be7a7ec221..cf40054f911cfc19251a7f2c95ae759200d64874 100644 (file)
@@ -402,7 +402,6 @@ if(CURL_USE_SCHANNEL)
 endif()
 if(CURL_WINDOWS_SSPI)
   set(USE_WINDOWS_SSPI ON)
-  list(APPEND CMAKE_REQUIRED_DEFINITIONS -DSECURITY_WIN32)
 endif()
 
 if(CURL_USE_SECTRANSP)