From e19f2a8a4b3103134f06e5f8e5b59b61488c885f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 27 Aug 2024 16:11:40 -0400 Subject: prelude: Define __SANITIZE_*__ --- src/atomic.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/atomic.h') 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 /** @@ -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) -- cgit v1.2.3