From b63313dfcc7c1a49aa69433789b5d7b4c72c3f21 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 8 Aug 2017 20:02:39 +0200 Subject: [PATCH] Added a new wrapper. --- m-atomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-atomic.h b/m-atomic.h index 3bdd882a..954cb16a 100644 --- a/m-atomic.h +++ b/m-atomic.h @@ -86,6 +86,8 @@ using std::atomic_flag_test_and_set_explicit; using std::atomic_flag_clear; using std::atomic_flag_clear_explicit; +#define _Atomic(T) std::atomic< T > + #elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \ || ( defined(__GNUC__) && !defined(__clang__) ) \ || (defined(__clang__) && __clang_major__ >= 4)