]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CMake: remove `HAVE_WINSOCK_H` definition
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 29 Sep 2021 12:52:38 +0000 (14:52 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 29 Sep 2021 13:54:36 +0000 (15:54 +0200)
It's not used anymore.

Closes https://github.com/curl/curl/pull/7795

CMake/CurlTests.c
CMake/OtherTests.cmake
CMakeLists.txt
lib/curl_config.h.cmake

index e418146b4848e35f88db5d52a53296ad2e9a1c71..8666da0da948bc2192be15f8c8e0d138a2f2729d 100644 (file)
@@ -229,10 +229,6 @@ int main () { ; return 0; }
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
-#  else
-#    ifdef HAVE_WINSOCK_H
-#      include <winsock.h>
-#    endif
 #  endif
 #endif
 
@@ -258,10 +254,6 @@ main ()
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
-#  else
-#    ifdef HAVE_WINSOCK_H
-#      include <winsock.h>
-#    endif
 #  endif
 #endif
 
@@ -285,10 +277,6 @@ main ()
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
-#  else
-#    ifdef HAVE_WINSOCK_H
-#      include <winsock.h>
-#    endif
 #  endif
 #endif
 
@@ -313,10 +301,6 @@ main ()
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
-#  else
-#    ifdef HAVE_WINSOCK_H
-#      include <winsock.h>
-#    endif
 #  endif
 #endif
 
@@ -403,10 +387,6 @@ main ()
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>
-#  else
-#    ifdef HAVE_WINSOCK_H
-#      include <winsock.h>
-#    endif
 #  endif
 #endif
 /* includes start */
index 5cddf4afa9b04540ceec0652a3f80094c9e76db4..73c813fe51a063fb0cb2b4419a09c3dc3f77f751 100644 (file)
@@ -33,7 +33,6 @@ set(signature_call_conv)
 if(HAVE_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")
   set(signature_call_conv "PASCAL")
index cf9c390c3da2312ff29319dd37e72a3efde8b402..58e3c036681d2c45952175576f8d2f3d50b43c4e 100644 (file)
@@ -910,7 +910,6 @@ endif()
 # Check for header files
 if(NOT UNIX)
   check_include_file_concat("windows.h"      HAVE_WINDOWS_H)
-  check_include_file_concat("winsock.h"      HAVE_WINSOCK_H)
   check_include_file_concat("ws2tcpip.h"     HAVE_WS2TCPIP_H)
   check_include_file_concat("winsock2.h"     HAVE_WINSOCK2_H)
   check_include_file_concat("wincrypt.h"     HAVE_WINCRYPT_H)
index 4ef4883b2cac8272bd66aa303dc050def5103072..d2a0f438ccd816e9f305103dd949b2ce5e3b7e94 100644 (file)
 /* Define to 1 if you have the winsock2.h header file. */
 #cmakedefine HAVE_WINSOCK2_H 1
 
-/* Define to 1 if you have the winsock.h header file. */
-#cmakedefine HAVE_WINSOCK_H 1
-
 /* Define this symbol if your OS supports changing the contents of argv */
 #cmakedefine HAVE_WRITABLE_ARGV 1