Skip to content

Commit

Permalink
Update sn3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Feb 25, 2025
1 parent a25657f commit 068beb2
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 @@ -174,7 +174,7 @@ __attribute__((__format__(__printf__, 1, 2))) inline auto printout(const char *f
#define atomicadd(var, val) \
std::atomic_ref<typename std::remove_reference<decltype(var)>::type>(var).fetch_add(val, std::memory_order_relaxed);
#else
// needed for Apple clang
// needed for Apple clang until Xcode 16.3 is released
#define atomicadd(var, val) __atomic_fetch_add(&var, val, __ATOMIC_RELAXED);
#endif

Expand Down

0 comments on commit 068beb2

Please sign in to comment.