libstdc++: Remove #error from <semaphore> implementation [PR 100179]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 Apr 2021 10:10:06 +0000 (11:10 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 22 Apr 2021 12:59:32 +0000 (13:59 +0100)
commit4b2db8077136d2f8b5a0db026e6161810be327b3
tree5c86688c28a7b9b509ff44be0b612dfcb4a68ae2
parentd44d8ed6b4e6fb2d0cf7566214e2e8281dd44cf0
libstdc++: Remove #error from <semaphore> implementation [PR 100179]

This removes the #error from <bits/semaphore_base.h> for the case where
neither __atomic_semaphore nor __platform_semaphore is defined.

Also rename the _GLIBCXX_REQUIRE_POSIX_SEMAPHORE macro to
_GLIBCXX_USE_POSIX_SEMAPHORE for consistency with the similar
_GLIBCXX_USE_CXX11_ABI macro that can be used to request an alternative
(ABI-changing) implementation.

libstdc++-v3/ChangeLog:

PR libstdc++/100179
* include/bits/semaphore_base.h: Remove #error.
* include/std/semaphore: Do not define anything unless one of
the implementations is available.
libstdc++-v3/include/bits/semaphore_base.h
libstdc++-v3/include/std/semaphore