diff options
Diffstat (limited to 'osdep/win32/pthread.c')
-rw-r--r-- | osdep/win32/pthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/win32/pthread.c b/osdep/win32/pthread.c index 465ac94568..dfc70288ac 100644 --- a/osdep/win32/pthread.c +++ b/osdep/win32/pthread.c @@ -244,6 +244,7 @@ done: void pthread_set_name_np(pthread_t thread, const char *name) { +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && defined(_PROCESSTHREADSAPI_H_) HMODULE kernel32 = GetModuleHandleW(L"kernel32.dll"); if (!kernel32) return; @@ -263,6 +264,7 @@ void pthread_set_name_np(pthread_t thread, const char *name) pSetThreadDescription(th, wname); } CloseHandle(th); +#endif } int sem_init(sem_t *sem, int pshared, unsigned int value) |