mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-24 10:39:51 +00:00
cmake: fix detection of pthread_setname_np() on Apple platforms.
This commit is contained in:
parent
93ed3148ba
commit
f7f61af12b
@ -872,7 +872,11 @@ macro(CheckPTHREAD)
|
||||
check_c_source_compiles("
|
||||
#include <pthread.h>
|
||||
int main(int argc, char **argv) {
|
||||
#ifdef __APPLE__
|
||||
pthread_setname_np(pthread_self());
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), \"\");
|
||||
#endif
|
||||
return 0;
|
||||
}" HAVE_PTHREAD_SETNAME_NP)
|
||||
if (HAVE_PTHREAD_NP_H)
|
||||
|
Loading…
Reference in New Issue
Block a user