libstdc++: Change names that clash with Win32 or Clang
authorJonathan Wakely <jwakely@redhat.com>
Mon, 12 Dec 2022 11:22:45 +0000 (11:22 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 12 Dec 2022 14:00:09 +0000 (14:00 +0000)
commitcb363fd9f19eb791e1ee1eb0d5c61f5fdf21af32
tree0230783396b11e025cd0e4dccd63e1b0b8f88922
parent320ac807da125e6dc952b3d4abf02daeead88d44
libstdc++: Change names that clash with Win32 or Clang

Clang now defines an __is_unsigned built-in, and Windows defines an
_Out_ macro. Replace uses of those as identifiers.

There might also be a problem with __is_signed, which we use in several
places.

libstdc++-v3/ChangeLog:

* include/std/chrono (hh_mm_ss): Rename __is_unsigned member to
_S_is_unsigned.
* include/std/format (basic_format_context): Rename _Out_
template parameter to _Out2.
* testsuite/17_intro/names.cc: Add Windows SAL annotation
macros.
libstdc++-v3/include/std/chrono
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/17_intro/names.cc