Skip to content

Commit

Permalink
Update sn3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 20, 2024
1 parent 1f8f2a4 commit 56db131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sn3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ __attribute__((__format__(__printf__, 1, 2))) inline auto printout(const char *f

#ifdef __cpp_lib_atomic_ref
#define atomicadd(var, val) \
std::atomic_ref<std::remove_reference<decltype(var)>::type>(var).fetch_add(val, std::memory_order_relaxed);
std::atomic_ref<typename std::remove_reference<decltype(var)>::type>(var).fetch_add(val, std::memory_order_relaxed);
#else
// needed for Apple clang
#define atomicadd(var, val) __atomic_fetch_add(&var, val, __ATOMIC_RELAXED);
Expand Down

0 comments on commit 56db131

Please sign in to comment.