From 4a7c10c6cc36db72efafa46915c2bd28b064a493 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Wed, 7 Sep 2022 10:54:16 +0200 Subject: [PATCH] curl_setup: include curl.h after platform setup headers 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index e5356dcc92..54f46f899b 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -158,8 +158,6 @@ /* please, do it beyond the point further indicated in this file. */ /* ================================================================ */ -#include - /* * Disable other protocols when http is the only one desired. */ @@ -219,7 +217,7 @@ /* ================================================================ */ /* 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. */ /* ================================================================ */ /* @@ -246,6 +244,8 @@ # include "setup-win32.h" #endif +#include + /* * Use getaddrinfo to resolve the IPv4 address literal. If the current network * interface doesn't support IPv4, but supports IPv6, NAT64, and DNS64,