summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/debug_alloc_stack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/tsan/debug_alloc_stack.cc')
-rw-r--r--compiler-rt/test/tsan/debug_alloc_stack.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/debug_alloc_stack.cc b/compiler-rt/test/tsan/debug_alloc_stack.cc
index 8c205cd47af..a9383fce839 100644
--- a/compiler-rt/test/tsan/debug_alloc_stack.cc
+++ b/compiler-rt/test/tsan/debug_alloc_stack.cc
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
-#if !__APPLE__
+#ifndef __APPLE__
#include <sys/types.h>
#endif
@@ -19,7 +19,7 @@ void alloc_func() { mem = (char *)malloc(10); }
void *AllocThread(void *context) {
uint64_t tid;
-#if __APPLE__
+#ifdef __APPLE__
pthread_threadid_np(NULL, &tid);
#else
tid = gettid();
OpenPOWER on IntegriCloud