From: Brian Norris Date: Wed, 5 Dec 2012 00:04:40 +0000 (-0800) Subject: impatomic: move atomic_{thread,signal}_fence() to namespace std X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=aa5eb7b5cb804a25b547fc0ae733498cbb167276;hp=dc83c88bb4917edbc9ad07f1ab942172fab72a72;ds=sidebyside impatomic: move atomic_{thread,signal}_fence() to namespace std --- diff --git a/include/impatomic.h b/include/impatomic.h index b64df7af..cf62f396 100644 --- a/include/impatomic.h +++ b/include/impatomic.h @@ -3841,11 +3841,6 @@ T* atomic::fetch_sub( ptrdiff_t __v__, memory_order __x__ ) volatile #endif - -#ifdef __cplusplus -} // namespace std -#endif - #ifdef __cplusplus extern "C" { #endif @@ -3859,4 +3854,9 @@ inline void atomic_signal_fence(memory_order order) } #endif + +#ifdef __cplusplus +} // namespace std +#endif + #endif /* __IMPATOMIC_H__ */ diff --git a/include/stdatomic.h b/include/stdatomic.h index 7b3ff800..d4d21984 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -64,6 +64,9 @@ using std::memory_order_release; using std::memory_order_acq_rel; using std::memory_order_seq_cst; +using std::atomic_thread_fence; +using std::atomic_signal_fence; + #endif /* __cplusplus */ #endif /* __STDATOMIC_H__ */