Commit 67ac31d1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '247aa7af'

* commit '247aa7af':
  avisynth: Simplify shared library name construction

Conflicts:
	libavformat/avisynth.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 12da8bc3 247aa7af
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "libavcodec/internal.h" #include "libavcodec/internal.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "config.h"
/* Enable function pointer definitions for runtime loading. */ /* Enable function pointer definitions for runtime loading. */
#define AVSC_NO_DECLSPEC #define AVSC_NO_DECLSPEC
...@@ -36,11 +37,8 @@ ...@@ -36,11 +37,8 @@
#else #else
#include <dlfcn.h> #include <dlfcn.h>
#include "compat/avisynth/avxsynth_c.h" #include "compat/avisynth/avxsynth_c.h"
#if defined (__APPLE__) #define AVISYNTH_NAME "libavxsynth"
#define AVISYNTH_LIB "libavxsynth.dylib" #define AVISYNTH_LIB AVISYNTH_NAME SLIBSUF
#else
#define AVISYNTH_LIB "libavxsynth.so"
#endif
#define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_LOCAL) #define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_LOCAL)
#define GetProcAddress dlsym #define GetProcAddress dlsym
......
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