mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Apparently program_invocation_short_name may be not defined.
This commit is contained in:
parent
f0e1d77ebc
commit
5ea71ea20d
@ -272,7 +272,7 @@ static const char* GetProcessName()
|
|||||||
if( buf ) processName = buf;
|
if( buf ) processName = buf;
|
||||||
# endif
|
# endif
|
||||||
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
||||||
processName = program_invocation_short_name;
|
if( program_invocation_short_name ) processName = program_invocation_short_name;
|
||||||
#elif defined __APPLE__ || defined BSD
|
#elif defined __APPLE__ || defined BSD
|
||||||
auto buf = getprogname();
|
auto buf = getprogname();
|
||||||
if( buf ) processName = buf;
|
if( buf ) processName = buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user