]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup.h: include `stdint.h` earlier
authorViktor Szakats <commit@vsz.me>
Fri, 29 Aug 2025 09:02:55 +0000 (11:02 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 29 Aug 2025 19:14:35 +0000 (21:14 +0200)
To have it included by the time checking for `SIZE_MAX` and `SSIZE_MAX`.

Ref: 93f333c18fffc3c091b149f3e0ec2ca02b8dab40 #18426 #18406

Closes #18430

lib/curl_setup.h
lib/curl_setup_once.h

index 790255612368150bb103ce48969297d047be774a..bc3fbf28dd0cfe3b696fe492e61de04388375fd2 100644 (file)
 #include <curl/stdcheaders.h>
 #endif
 
+#if defined(HAVE_STDINT_H) || defined(USE_WOLFSSL)
+#include <stdint.h>
+#endif
+
 #ifdef _WIN32
 #  ifdef HAVE_IO_H
 #  include <io.h>
index 642e1487c8ae1a54e469ae55bdb6f12742ca8341..7a54760e161ef0b2e276aabd083a3aba9c1356a7 100644 (file)
 #include <unistd.h>
 #endif
 
-#if defined(HAVE_STDINT_H) || defined(USE_WOLFSSL)
-#include <stdint.h>
-#endif
-
 /* Macro to strip 'const' without triggering a compiler warning.
    Use it for APIs that do not or cannot support the const qualifier. */
 #ifdef HAVE_STDINT_H