Correct define for Darwin PPC is __POWERPC__

This commit is contained in:
Sergey Fedorov 2022-10-31 03:03:20 +08:00
parent 4ed4e8708e
commit ff09f63b14
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ namespace util
}
void SetThreadName (const char *name) {
#if defined(__APPLE__) && !defined(__powerpc__)
#if defined(__APPLE__) && !defined(__POWERPC__)
pthread_setname_np((char*)name);
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
pthread_set_name_np(pthread_self(), name);