]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup: include curl.h after platform setup headers
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 7 Sep 2022 08:54:16 +0000 (10:54 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 12 Sep 2022 07:41:42 +0000 (09:41 +0200)
The platform setup headers might set definitions required for the
includes in curl.h.

Ref: https://github.com/curl/curl/pull/9375#discussion_r956998269
Closes https://github.com/curl/curl/pull/9453

lib/curl_setup.h

index e5356dcc92438381526a82d4d9a4e3a4e9261751..54f46f899b21734e33ed6b3e33259dadf4b810b7 100644 (file)
 /*  please, do it beyond the point further indicated in this file.  */
 /* ================================================================ */
 
-#include <curl/curl.h>
-
 /*
  * Disable other protocols when http is the only one desired.
  */
 
 /* ================================================================ */
 /* No system header file shall be included in this file before this */
-/* point. The only allowed ones are those included from curl/system.h */
+/* point.                                                           */
 /* ================================================================ */
 
 /*
 #  include "setup-win32.h"
 #endif
 
+#include <curl/curl.h>
+
 /*
  * Use getaddrinfo to resolve the IPv4 address literal. If the current network
  * interface doesn't support IPv4, but supports IPv6, NAT64, and DNS64,