aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-12-17 12:09:20 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-12-17 14:03:00 +0000
commit8dc63f13f03facc49b777195c9068432477b5dcd (patch)
tree91e917a1d24edac9625b1baa6fd49ccee0cc7413
parent8cdca5f9c706af118390489efc94336f6214f515 (diff)
downloadgcc-8dc63f13f03facc49b777195c9068432477b5dcd.zip
gcc-8dc63f13f03facc49b777195c9068432477b5dcd.tar.gz
gcc-8dc63f13f03facc49b777195c9068432477b5dcd.tar.bz2
libstdc++: Fix preprocessor condition [PR 98344]
libstdc++-v3/ChangeLog: PR libstdc++/98344 * include/bits/semaphore_base.h: Fix preprocessor condition.
-rw-r--r--libstdc++-v3/include/bits/semaphore_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/semaphore_base.h b/libstdc++-v3/include/bits/semaphore_base.h
index e4e57de..c796a77 100644
--- a/libstdc++-v3/include/bits/semaphore_base.h
+++ b/libstdc++-v3/include/bits/semaphore_base.h
@@ -276,7 +276,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Note: the _GLIBCXX_REQUIRE_POSIX_SEMAPHORE macro can be used to force the
// use of Posix semaphores (sem_t). Doing so however, alters the ABI.
-#ifdef _GLIBCXX_HAVE_LINUX_FUTEX && !_GLIBCXX_REQUIRE_POSIX_SEMAPHORE
+#if defined _GLIBCXX_HAVE_LINUX_FUTEX && !_GLIBCXX_REQUIRE_POSIX_SEMAPHORE
// Use futex if available and didn't force use of POSIX
using __fast_semaphore = __atomic_semaphore<__detail::__platform_wait_t>;
#elif _GLIBCXX_HAVE_POSIX_SEMAPHORE