libstdc++: Make preprocessor checks for __cpp_lib_atomic_wait consistent
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Dec 2020 00:39:22 +0000 (00:39 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 2 Dec 2020 00:39:22 +0000 (00:39 +0000)
This changes some #ifdef checks to use #if instead.

libstdc++-v3/ChangeLog:

* include/bits/atomic_timed_wait.h: Use #if instead of #ifdef.
* include/bits/semaphore_base.h: Likewise.
* include/std/version: Remove trailing whitespace.

libstdc++-v3/include/bits/atomic_timed_wait.h
libstdc++-v3/include/bits/semaphore_base.h
libstdc++-v3/include/std/version

index 6dd1a145e6995cf20facd4e87a49675097babd74..83438ae31ed3d96cd273e4c50885b73730e1d9ec 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <bits/atomic_wait.h>
 
-#ifdef __cpp_lib_atomic_wait
+#if __cpp_lib_atomic_wait
 #include <bits/functional_hash.h>
 
 #include <chrono>
index 0ed1f5895afada0e77e4b37195f30ccb7b404b52..e4e57de4acf4053c30e79ab8b672bf78d445f3fa 100644 (file)
@@ -33,7 +33,7 @@
 #pragma GCC system_header
 
 #include <bits/atomic_base.h>
-#ifdef __cpp_lib_atomic_wait 
+#if __cpp_lib_atomic_wait
 #include <bits/atomic_timed_wait.h>
 
 #include <ext/numeric_traits.h>
index 4bb45b7805cabe303102df58b6633fd9bc1434dd..25f628f399d8bbd8595b544daded42614502d6f6 100644 (file)
 #ifdef _GLIBCXX_HAS_GTHREADS
 # define __cpp_lib_jthread 201911L
 #endif
-#if __cpp_lib_atomic_wait 
+#if __cpp_lib_atomic_wait
 # define __cpp_lib_latch 201907L
 #endif
 #define __cpp_lib_list_remove_return_type 201806L
 #if __cpp_lib_concepts
 # define __cpp_lib_ranges 201911L
 #endif
-#if __cpp_lib_atomic_wait 
+#if __cpp_lib_atomic_wait
 # define __cpp_lib_semaphore 201907L
 #endif
 #define __cpp_lib_shift 201806L