From 8f75839d66d75c7361f4f46eb344a693ff7d49ba Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 20 Feb 2019 12:43:48 +0100 Subject: [PATCH] Fix apple target detection. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index b46ddfef..261a9a9e 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -266,9 +266,9 @@ static const char* GetHostInfo() ptr += sprintf( ptr, "OS: Linux %s\n", utsName.release ); # endif #elif defined __APPLE__ -# if defined TARGET_OS_IPHONE +# if TARGET_OS_IPHONE == 1 ptr += sprintf( ptr, "OS: Darwin (iOS)\n" ); -# elif defined TARGET_OS_MAC +# elif TARGET_OS_MAC == 1 ptr += sprintf( ptr, "OS: Darwin (OSX)\n" ); # else ptr += sprintf( ptr, "OS: Darwin (unknown)\n" );