aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-03 13:56:15 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-05-03 13:56:15 -0700
commitf3003885911eb303db69bcfef98161b8326b7dae (patch)
tree3816af3616074da298540e52434609c63b5f48bc /src/core
parent84f75d448e2eb9c76301598cfaf8630603ef4a98 (diff)
Better? feature test
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/debug/trace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/debug/trace.h b/src/core/lib/debug/trace.h
index bf3bfee306..ba432574d0 100644
--- a/src/core/lib/debug/trace.h
+++ b/src/core/lib/debug/trace.h
@@ -38,9 +38,11 @@
#include <grpc/support/port_platform.h>
#include <stdbool.h>
-#if defined(__has_feature) && __has_feature(thread_sanitizer)
+#if defined(__has_feature)
+#if __has_feature(thread_sanitizer)
#define GRPC_THREADSAFE_TRACER
#endif
+#endif
typedef struct {
#ifdef GRPC_THREADSAFE_TRACER