diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-05 18:39:50 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-06 21:15:25 +0100 |
commit | dcc735aaeae1cc985a143ade883db748fb10554d (patch) | |
tree | c39fc3d6336dcc450e466dce9c1b1e0ea3480336 /gcc | |
parent | 273f16a125c4fab664683376ae04a9a31e7d6a22 (diff) | |
download | gcc-dcc735aaeae1cc985a143ade883db748fb10554d.zip gcc-dcc735aaeae1cc985a143ade883db748fb10554d.tar.gz gcc-dcc735aaeae1cc985a143ade883db748fb10554d.tar.bz2 |
libstdc++: Restore support for including <name.h> in extern "C" [PR115797]
The r15-1857 change means that <type_traits> is included by <cmath> for
C++17 and up, which breaks code including <math.h> inside an extern "C"
block. Although doing that is not allowed by the C++ standard, there's
lots of existing code which incorrectly thinks it's a good idea and so
we try to support it.
libstdc++-v3/ChangeLog:
PR libstdc++/115797
* include/std/type_traits: Ensure "C++" language linkage.
* testsuite/17_intro/headers/c++2011/linkage.cc: Replace
dg-options with c++11 target selector.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions