mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix apple target detection.
This commit is contained in:
parent
0fd3025a7e
commit
8f75839d66
@ -266,9 +266,9 @@ static const char* GetHostInfo()
|
|||||||
ptr += sprintf( ptr, "OS: Linux %s\n", utsName.release );
|
ptr += sprintf( ptr, "OS: Linux %s\n", utsName.release );
|
||||||
# endif
|
# endif
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
# if defined TARGET_OS_IPHONE
|
# if TARGET_OS_IPHONE == 1
|
||||||
ptr += sprintf( ptr, "OS: Darwin (iOS)\n" );
|
ptr += sprintf( ptr, "OS: Darwin (iOS)\n" );
|
||||||
# elif defined TARGET_OS_MAC
|
# elif TARGET_OS_MAC == 1
|
||||||
ptr += sprintf( ptr, "OS: Darwin (OSX)\n" );
|
ptr += sprintf( ptr, "OS: Darwin (OSX)\n" );
|
||||||
# else
|
# else
|
||||||
ptr += sprintf( ptr, "OS: Darwin (unknown)\n" );
|
ptr += sprintf( ptr, "OS: Darwin (unknown)\n" );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user