diff options
author | Pedro Pombeiro <pedropombeiro@gmail.com> | 2017-06-27 13:50:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-29 10:36:16 +0200 |
commit | 4637b029cdd168d4196f5ab69fa5f91556ee5d11 (patch) | |
tree | 88bf0e222d4743ffb067daedef4985887f4fca37 /osdep/win32 | |
parent | f22d12ac5115a22a251e479c9c27e5f55337bb28 (diff) | |
download | mpv-4637b029cdd168d4196f5ab69fa5f91556ee5d11.tar.bz2 mpv-4637b029cdd168d4196f5ab69fa5f91556ee5d11.tar.xz |
Universal Windows Plaform (UWP) support
libmpv only. Some things are still missing.
Heavily reworked.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'osdep/win32')
-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) |