impatomic: move atomic_{thread,signal}_fence() to namespace std
[c11tester.git] / include / impatomic.h
index b64df7af920dd863fa1c8a21d1e64379c6a164fe..cf62f3960231d37c955aa0f22913005a2d4348a7 100644 (file)
@@ -3841,11 +3841,6 @@ T* atomic<T*>::fetch_sub( ptrdiff_t __v__, memory_order __x__ ) volatile
 
 #endif
 
 
 #endif
 
-
-#ifdef __cplusplus
-} // namespace std
-#endif
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -3859,4 +3854,9 @@ inline void atomic_signal_fence(memory_order order)
 }
 #endif
 
 }
 #endif
 
+
+#ifdef __cplusplus
+} // namespace std
+#endif
+
 #endif /* __IMPATOMIC_H__ */
 #endif /* __IMPATOMIC_H__ */