More fixup for r290119: Make the ifdef work.

llvm-svn: 290126
This commit is contained in:
Kuba Mracek 2016-12-19 18:27:26 +00:00
parent 115d33cba4
commit 05bf3ec4c4
1 changed files with 2 additions and 2 deletions

View File

@ -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();