Skip to content

Commit b8e4d68

Browse files
authored
Update usage of deprecated ATOMIC_VAR_INIT (#23)
* Replace ATOMIC_VAR_INIT with std::atomic constructor. * use brace initialization instead
1 parent c620517 commit b8e4d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/nsync_atomic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ NSYNC_CPP_END_
4545
NSYNC_CPP_START_
4646
typedef std::atomic<uint32_t> nsync_atomic_uint32_;
4747
NSYNC_CPP_END_
48-
#define NSYNC_ATOMIC_UINT32_INIT_ ATOMIC_VAR_INIT (0)
48+
#define NSYNC_ATOMIC_UINT32_INIT_ { 0 }
4949
#define NSYNC_ATOMIC_UINT32_LOAD_(p) (std::atomic_load (p))
5050
#define NSYNC_ATOMIC_UINT32_STORE_(p,v) (std::atomic_store ((p), (uint32_t) (v)))
5151
#define NSYNC_ATOMIC_UINT32_PTR_(p) (p)

0 commit comments

Comments
 (0)