Skip to content

Commit f9224c1

Browse files
committed
Fix gcc
1 parent 8ac7997 commit f9224c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/public/minbase/minbase_decls.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,10 @@
164164
// We also add noinline, to make sure the function is not inlined into a caller that is
165165
// instrumented by TSan, which would cause the instrumentation to be applied to the function
166166
// anyway.
167-
#if !defined( __SANITIZE_THREAD__ ) && defined(__has_feature) && __has_feature(thread_sanitizer)
168-
#define __SANITIZE_THREAD__ 1
167+
#if !defined( __SANITIZE_THREAD__ ) && defined(__has_feature)
168+
#if __has_feature(thread_sanitizer)
169+
#define __SANITIZE_THREAD__ 1
170+
#endif
169171
#endif
170172
#if __SANITIZE_THREAD__
171173
#define ATTR_NO_SANITIZE_THREAD __attribute__(( no_sanitize("thread") ))

0 commit comments

Comments
 (0)