curl/.github
Viktor Szakats 1671ebd975
build: drop superfluous STDC_HEADERS macro
It is traditionally defined by autotools to detect the presence of set
of standard C89 headers. autoconf 2.70 (2020-12-08) reduced the headers
covered to `stdlib.h`, `string.h`. After 2.59d (2006-06-05) obsoleting
it earlier. CMake replicated this detection, and curl included
`curl/stdcheaders.h` if standard headers were missing. However, such
condition could never happen because curl sources already assume all
checked standard headers (`stdarg.h`, `stdlib.h`, `string.h`) and
include them unconditionally.

Since this is an unused feature detection and an impossible fallback
path, drop them from CMake and curl's source. autotools continues to do
the detection by default, but its result is unused after this patch.

This leaves public `curl/stdcheaders.h` unused from within the codebase.

Refs:
f0c7c42553
86c213d0e3

Follow-up to 65dae4ad80 #22191
Follow-up to 4c5307b456
Ref: ae1912cb0d

Closes #22206
2026-06-29 11:11:16 +02:00
..
ISSUE_TEMPLATE github: Add AI usage warning to issue, doc and PR templates 2026-06-02 13:47:01 -04:00
scripts build: drop superfluous STDC_HEADERS macro 2026-06-29 11:11:16 +02:00
workflows cf-ngtcp2-cmn: initialize new callback ptr for ngtcp2 1.24.0+, bump in CI 2026-06-28 13:57:31 +02:00
CODEOWNERS CI: add whitespace checker 2024-06-27 13:33:30 +02:00
CONTRIBUTING.md tidy-up: Markdown, clang-format nits 2026-01-22 23:44:47 +01:00
dependabot.yml GHA/dependabot: tidy-ups 2025-11-02 17:45:50 +01:00
FUNDING.yml copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
labeler.yml CI: improve labeler tag detection 2026-06-16 10:53:17 -07:00
lock.yml copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
pull_request_template.md github: Add AI usage warning to issue, doc and PR templates 2026-06-02 13:47:01 -04:00
stale.yml tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00