diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-09-24 19:39:29 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-10-10 23:20:10 +0200 |
commit | 4064f42889685e7122cfad4934b060098c147753 (patch) | |
tree | 9795d7e0d44cc2545a3e94076a54e22eda6475ae /libavcodec/nvenc.c | |
parent | fca9ca539c8c6e4fe0072486c7e0479a08a15e7c (diff) | |
download | ffmpeg-streaming-4064f42889685e7122cfad4934b060098c147753.zip ffmpeg-streaming-4064f42889685e7122cfad4934b060098c147753.tar.gz |
build: Drop explicit check for dlfcn.h
It is detected as a part of the libdl check.
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 884b344..a7171e4 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -28,12 +28,7 @@ #define CUDA_LIBNAME "libcuda.so" -#if HAVE_DLFCN_H -#include <dlfcn.h> - -#define NVENC_LIBNAME "libnvidia-encode.so" - -#elif HAVE_WINDOWS_H +#if HAVE_WINDOWS_H #include <windows.h> #if ARCH_X86_64 @@ -45,6 +40,9 @@ #define dlopen(filename, flags) LoadLibrary((filename)) #define dlsym(handle, symbol) GetProcAddress(handle, symbol) #define dlclose(handle) FreeLibrary(handle) +#else +#include <dlfcn.h> +#define NVENC_LIBNAME "libnvidia-encode.so" #endif #include "libavutil/common.h" |