Skip to content
Snippets Groups Projects
Commit 8b28ec4e authored by deuce's avatar deuce
Browse files

There is no #elsif

parent d2e66a97
No related branches found
No related tags found
No related merge requests found
......@@ -102,13 +102,15 @@ pthread_mutex_t pthread_mutex_initializer_np(BOOL recursive);
#if defined (__FreeBSD__) || defined (__OpenBSD__)
#include <pthread_np.h>
#define SetThreadName(c) pthread_set_name_np(pthread_self(),c)
#elsif defined(__GLIBC__)
#include <features.h>
#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12))
#define SetThreadName(c) pthread_setname_np(pthread_self(),c)
#endif
#else
#define SetThreadName(c)
#if defined(__GLIBC__)
#include <features.h>
#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12))
#define SetThreadName(c) pthread_setname_np(pthread_self(),c)
#endif
#else
#define SetThreadName(c)
#endif
#endif
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment