curl_setup.h: include stdint.h earlier

To have it included by the time checking for `SIZE_MAX` and `SSIZE_MAX`.

Ref: 93f333c18f #18426 #18406

Closes #18430
This commit is contained in:
Viktor Szakats 2025-08-29 11:02:55 +02:00
parent fa9151b41a
commit 598078dcf8
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
2 changed files with 4 additions and 4 deletions

View File

@ -475,6 +475,10 @@
#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>

View File

@ -63,10 +63,6 @@
#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