mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +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;
|
||||
# endif
|
||||
#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
|
||||
auto buf = getprogname();
|
||||
if( buf ) processName = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user