Browse Source

Use stdatomic.h from upstream
8b271fddab9ba30fac45eb7a3868ba22d0de2c23

mikhnenko 1 year ago
parent
commit
33f58e9729
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/libs/cxxsupp/libcxx/include/stdatomic.h

+ 2 - 2
contrib/libs/cxxsupp/libcxx/include/stdatomic.h

@@ -121,7 +121,7 @@ using std::atomic_signal_fence                         // see below
 #  pragma GCC system_header
 #endif
 
-#if _LIBCPP_STD_VER > 20
+#if defined(__cplusplus) && _LIBCPP_STD_VER >= 23
 
 #include <atomic>
 #include <version>
@@ -230,6 +230,6 @@ using std::atomic_thread_fence _LIBCPP_USING_IF_EXISTS;
 #   include_next <stdatomic.h>
 # endif
 
-#endif // _LIBCPP_STD_VER > 20
+#endif // defined(__cplusplus) && _LIBCPP_STD_VER >= 23
 
 #endif // _LIBCPP_STDATOMIC_H