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
This commit is contained in:
Marcel Raad 2022-09-07 10:54:16 +02:00
parent ff021cb216
commit 4a7c10c6cc
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -158,8 +158,6 @@
/* 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.
*/
@ -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 <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,