summaryrefslogtreecommitdiffstats
path: root/src/atomic.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 16:11:40 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commite19f2a8a4b3103134f06e5f8e5b59b61488c885f (patch)
treec606a90cfbd24c4ebe69e7c8c49bea9a5c9b7c18 /src/atomic.h
parent386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (diff)
downloadbfs-e19f2a8a4b3103134f06e5f8e5b59b61488c885f.tar.xz
prelude: Define __SANITIZE_*__
Diffstat (limited to 'src/atomic.h')
-rw-r--r--src/atomic.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/atomic.h b/src/atomic.h
index ad5303b..a241a03 100644
--- a/src/atomic.h
+++ b/src/atomic.h
@@ -9,7 +9,6 @@
#define BFS_ATOMIC_H
#include "prelude.h"
-#include "sanity.h"
#include <stdatomic.h>
/**
@@ -87,7 +86,7 @@
/**
* Shorthand for atomic_thread_fence().
*/
-#if SANITIZE_THREAD
+#if __SANITIZE_THREAD__
// TSan doesn't support fences: https://github.com/google/sanitizers/issues/1415
# define thread_fence(obj, order) \
fetch_add(obj, 0, order)