From 7fa1c2264e4e98529f47be76e232c84b1b71100f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 20 Apr 2018 19:34:22 +0200 Subject: [PATCH] Fix issue for C++ layer (memory order constants have to be put in the current namespace too). --- m-atomic.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/m-atomic.h b/m-atomic.h index 2d096661..2a1efe5a 100644 --- a/m-atomic.h +++ b/m-atomic.h @@ -89,6 +89,13 @@ using std::atomic_flag_test_and_set_explicit; using std::atomic_flag_clear; using std::atomic_flag_clear_explicit; +using std::memory_order_relaxed; +using std::memory_order_consume; +using std::memory_order_acquire; +using std::memory_order_release; +using std::memory_order_acq_rel; +using std::memory_order_seq_cst; + #define _Atomic(T) std::atomic< T > #elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \