Landing: 85a9b3b56de7
Project / Subsystem
gcc / ginclude
Date
2026-05-03
Author
Collin Funk
Commit
85a9b3b56de7c14528b7e536d295545da15440bf
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ginclude
- patch_id
- —
- commit_hash
- 85a9b3b56de7c14528b7e536d295545da15440bf
- source_type
- github
- headline
- ginclude: Avoid Redefining __STDC_VERSION_LIMITS_H__
- tldr
- The compiler now avoids redefining the `__STDC_VERSION_LIMITS_H__` macro, preventing warnings when including system headers.
- author
- Collin Funk
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ginclude
- • macro
- • warning
- • headers
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-03T00:00:00.000Z
The compiler now avoids redefining the __STDC_VERSION_LIMITS_H__ macro in glimits.h if it is already defined by the system’s limits.h header. This prevents warnings (specifically, -Wsystem-headers) when compiling code that includes limits.h, especially with newer glibc versions. This improves user experience by reducing spurious warnings during compilation.