From: Jonathan Wakely Date: Wed, 2 Dec 2020 00:39:22 +0000 (+0000) Subject: libstdc++: Make preprocessor checks for __cpp_lib_atomic_wait consistent X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=670f5095e4aacc30099f6b73c1e67c06df76f36b;p=gcc.git libstdc++: Make preprocessor checks for __cpp_lib_atomic_wait consistent 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. --- diff --git a/libstdc++-v3/include/bits/atomic_timed_wait.h b/libstdc++-v3/include/bits/atomic_timed_wait.h index 6dd1a145e69..83438ae31ed 100644 --- a/libstdc++-v3/include/bits/atomic_timed_wait.h +++ b/libstdc++-v3/include/bits/atomic_timed_wait.h @@ -34,7 +34,7 @@ #include -#ifdef __cpp_lib_atomic_wait +#if __cpp_lib_atomic_wait #include #include diff --git a/libstdc++-v3/include/bits/semaphore_base.h b/libstdc++-v3/include/bits/semaphore_base.h index 0ed1f5895af..e4e57de4acf 100644 --- a/libstdc++-v3/include/bits/semaphore_base.h +++ b/libstdc++-v3/include/bits/semaphore_base.h @@ -33,7 +33,7 @@ #pragma GCC system_header #include -#ifdef __cpp_lib_atomic_wait +#if __cpp_lib_atomic_wait #include #include diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 4bb45b7805c..25f628f399d 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -219,7 +219,7 @@ #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 @@ -231,7 +231,7 @@ #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