diff options
author | Kuba Mracek <mracek@apple.com> | 2016-12-19 18:27:26 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2016-12-19 18:27:26 +0000 |
commit | 05bf3ec4c48b0b9e4dc0d68cc975e6987228411e (patch) | |
tree | 9d4993303e11c17d9955765c4eed0752e632c95d | |
parent | 115d33cba4dfd840d3c95ccdf7c987f78c899777 (diff) | |
download | bcm5719-llvm-05bf3ec4c48b0b9e4dc0d68cc975e6987228411e.tar.gz bcm5719-llvm-05bf3ec4c48b0b9e4dc0d68cc975e6987228411e.zip |
More fixup for r290119: Make the ifdef work.
llvm-svn: 290126
-rw-r--r-- | compiler-rt/test/tsan/debug_alloc_stack.cc | 4 |
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(); |