Fix some missing thread names in debug info.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6076 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-10-09 07:58:08 +00:00
parent c09fef6c4d
commit b4127e58cc
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority
thread = NULL;
}
pthread_attr_destroy(&attr);
#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
#if __GLIBC_PREREQ(2,12)
pthread_setname_np(*thread, name);
#endif
@ -123,7 +123,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority
}
pthread_attr_destroy(&attr);
#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
#if __GLIBC_PREREQ(2,12)
pthread_setname_np(*thread, name);
#endif