Commit 6ead033b authored by Matt Oliver's avatar Matt Oliver

avcodec/nvenc.c: Use new safe dlopen code.

Signed-off-by: 's avatarMatt Oliver <protogonoi@gmail.com>
parent d6f85ec2
...@@ -34,11 +34,7 @@ ...@@ -34,11 +34,7 @@
#endif #endif
#if defined(_WIN32) #if defined(_WIN32)
#include <windows.h> #include "compat/w32dlfcn.h"
#define dlopen(filename, flags) LoadLibrary(TEXT(filename))
#define dlsym(handle, symbol) GetProcAddress(handle, symbol)
#define dlclose(handle) FreeLibrary(handle)
#else #else
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment