avcodec/nvenc.c: Use new safe dlopen code.
authorMatt Oliver <protogonoi@gmail.com>
Sat, 29 Oct 2016 07:25:36 +0000 (18:25 +1100)
committerMatt Oliver <protogonoi@gmail.com>
Sat, 5 Nov 2016 07:09:03 +0000 (18:09 +1100)
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
libavcodec/nvenc.c

index 2505c3d..a3a2ef5 100644 (file)
 #endif
 
 #if defined(_WIN32)
-#include <windows.h>
-
-#define dlopen(filename, flags) LoadLibrary(TEXT(filename))
-#define dlsym(handle, symbol)   GetProcAddress(handle, symbol)
-#define dlclose(handle)         FreeLibrary(handle)
+#include "compat/w32dlfcn.h"
 #else
 #include <dlfcn.h>
 #endif