浏览代码

cmake: really fix detection of pthread_setname_np() on Apple platforms.

Ozkan Sezer 2 年之前
父节点
当前提交
9b061c04e7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cmake/sdlchecks.cmake

+ 2 - 2
cmake/sdlchecks.cmake

@@ -992,9 +992,9 @@ macro(CheckPTHREAD)
             #include <pthread.h>
             int main(int argc, char **argv) {
               #ifdef __APPLE__
-              pthread_setname_np(pthread_self());
+              pthread_setname_np(\"\");
               #else
-              pthread_setname_np(pthread_self(), \"\");
+              pthread_setname_np(pthread_self(),\"\");
               #endif
               return 0;
             }" HAVE_PTHREAD_SETNAME_NP)