mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-04 17:54:35 +00:00
cmake: really fix detection of pthread_setname_np() on Apple platforms.
This commit is contained in:
@@ -873,9 +873,9 @@ macro(CheckPTHREAD)
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
pthread_setname_np(pthread_self());
|
pthread_setname_np(\"\");
|
||||||
#else
|
#else
|
||||||
pthread_setname_np(pthread_self(), \"\");
|
pthread_setname_np(pthread_self(),\"\");
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}" HAVE_PTHREAD_SETNAME_NP)
|
}" HAVE_PTHREAD_SETNAME_NP)
|
||||||
|
|||||||
Reference in New Issue
Block a user