mirror of
https://github.com/curl/curl.git
synced 2026-08-05 01:16:19 +03:00
build: assume stdint.h
curl requires `stdint.h` from C99, and no longer builds without it since
v8.18.0 (after dropping VS2008 support). Assume it's available, drop
feature checks.
Also:
- drop duplicate `stdint.h` includes.
- introduce internal `HAVE_UINTPTR_T`, enabled by default.
- OS400: disable `HAVE_UINTPTR_T`.
- build: keep cmake pre-fill and `cmp-config.pl` exception because cmake
and autotools both detect `stdint.h` implicitly.
Co-authored-by: Dan Fandrich
Ref: #20405
Ref: #20384
Follow-up to 2e1a045d89 #17931
Closes #20406
This commit is contained in:
parent
f062b4b903
commit
feb52be197
14 changed files with 8 additions and 31 deletions
|
|
@ -310,7 +310,7 @@ static CURLFORMcode FormAdd(struct curl_httppost **httppost,
|
|||
struct curl_httppost *lastnode = NULL;
|
||||
|
||||
#define form_ptr_arg(t) (forms ? (t)(void *)avalue : va_arg(params, t))
|
||||
#ifdef HAVE_STDINT_H
|
||||
#ifdef HAVE_UINTPTR_T
|
||||
#define form_int_arg(t) (forms ? (t)(uintptr_t)avalue : va_arg(params, t))
|
||||
#else
|
||||
#define form_int_arg(t) (forms ? (t)(void *)avalue : va_arg(params, t))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue