]> granicus.if.org Git - curl/commitdiff
system.h: include winsock2.h before windows.h
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 12 Jul 2017 05:55:18 +0000 (07:55 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 12 Jul 2017 05:55:18 +0000 (07:55 +0200)
... to avoid compiler warnings if the user doesn't want
WIN32_LEAN_AND_MEAN.

include/curl/system.h

index e808580eb08c9900a2bf70e7b199c911cda83138..79abf8fc283bf1e593ea87a2a8fa06a6123bc5d0 100644 (file)
 /* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file  */
 /* ws2tcpip.h is required here to properly make type definitions below. */
 #ifdef CURL_PULL_WS2TCPIP_H
-#  include <windows.h>
 #  include <winsock2.h>
+#  include <windows.h>
 #  include <ws2tcpip.h>
 #endif