impatomic: move atomic_{thread,signal}_fence() to namespace std
[c11tester.git] / include / stdatomic.h
index 035f848d33b648eaad450e7c29d38b7b422c5060..d4d21984ea8a1ea37f5db767a1deffca56a05c21 100644 (file)
@@ -1,3 +1,8 @@
+/**
+ * @file stdatomic.h
+ * @brief C11 atomic interface header
+ */
+
 #ifndef __STDATOMIC_H__
 #define __STDATOMIC_H__
 
@@ -59,6 +64,9 @@ using std::memory_order_release;
 using std::memory_order_acq_rel;
 using std::memory_order_seq_cst;
 
-#endif
+using std::atomic_thread_fence;
+using std::atomic_signal_fence;
+
+#endif /* __cplusplus */
 
 #endif /* __STDATOMIC_H__ */