From 598078dcf8a5bfc5597f68dd068986f5cd9030d0 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 29 Aug 2025 11:02:55 +0200 Subject: [PATCH] curl_setup.h: include `stdint.h` earlier To have it included by the time checking for `SIZE_MAX` and `SSIZE_MAX`. Ref: 93f333c18fffc3c091b149f3e0ec2ca02b8dab40 #18426 #18406 Closes #18430 --- lib/curl_setup.h | 4 ++++ lib/curl_setup_once.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 7902556123..bc3fbf28dd 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -475,6 +475,10 @@ #include #endif +#if defined(HAVE_STDINT_H) || defined(USE_WOLFSSL) +#include +#endif + #ifdef _WIN32 # ifdef HAVE_IO_H # include diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h index 642e1487c8..7a54760e16 100644 --- a/lib/curl_setup_once.h +++ b/lib/curl_setup_once.h @@ -63,10 +63,6 @@ #include #endif -#if defined(HAVE_STDINT_H) || defined(USE_WOLFSSL) -#include -#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