[FFmpeg-devel] [PATCH] compat: LoadLibrary isn't available on UWP/WinRT

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Jun 2 16:29:07 EEST 2017


---
 compat/w32dlfcn.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h
index bc9bb8c9f5..308763be53 100644
--- a/compat/w32dlfcn.h
+++ b/compat/w32dlfcn.h
@@ -71,7 +71,11 @@ exit:
 #ifndef LOAD_LIBRARY_SEARCH_SYSTEM32
 #   define LOAD_LIBRARY_SEARCH_SYSTEM32        0x00000800
 #endif
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
     return LoadLibraryExA(name, NULL, LOAD_LIBRARY_SEARCH_APPLICATION_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32);
+#else
+    return NULL;
+#endif
 }
 #define dlopen(name, flags) win32_dlopen(name)
 #define dlclose FreeLibrary
-- 
2.11.0



More information about the ffmpeg-devel mailing list