Files
2025-10-25 03:02:53 +03:00

31 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diff.mods.to.headers]
# Annex C (informative) Compatibility [[diff]](./#diff)
## C.8 C standard library [[diff.library]](diff.library#diff.mods.to.headers)
### C.8.2 Modifications to headers [diff.mods.to.headers]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3691)
For compatibility with the C standard library,
the C++ standard library provides the C headers enumerated
in [[support.c.headers]](support.c.headers "17.15C headers")[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3696)
There are no C++ headers for the C standard library's headers<stdnoreturn.h> and <threads.h>,
nor are these headers from the C standard library headers themselves part of C++[.](#2.sentence-1)
[3](#3)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3701)
The C headers [<complex.h>](complex.h.syn#header:%3ccomplex.h%3e "17.15.2Header <complex.h> synopsis[complex.h.syn]") and[<tgmath.h>](tgmath.h.syn#header:%3ctgmath.h%3e "17.15.6Header <tgmath.h> synopsis[tgmath.h.syn]") do not contain any of the content from
the C standard library and instead merely include other headers from the C++
standard library[.](#3.sentence-1)