mirror of https://github.com/libsdl-org/SDL.git
cmake: really fix detection of pthread_setname_np() on Apple platforms.
This commit is contained in:
parent
f7f61af12b
commit
272010b612
|
|
@ -873,7 +873,7 @@ 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue