libstdc++: Fix preprocessor condition [PR 98344]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Dec 2020 12:09:20 +0000 (12:09 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 17 Dec 2020 14:03:00 +0000 (14:03 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/98344
* include/bits/semaphore_base.h: Fix preprocessor condition.

libstdc++-v3/include/bits/semaphore_base.h

index e4e57de4acf4053c30e79ab8b672bf78d445f3fa..c796a77f3b1bbbccf40dfe86452c395d384424e8 100644 (file)
@@ -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