]> git.sesse.net Git - ffmpeg/commitdiff
avisynth: Simplify shared library name construction
authorDiego Biurrun <diego@biurrun.de>
Tue, 17 Mar 2015 12:32:06 +0000 (13:32 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 15 Apr 2015 12:52:57 +0000 (14:52 +0200)
libavformat/avisynth.c

index a5cf4e728a2805bc27ffcb71572239c189018589..1a6a73f53ee025465e9c931be05ff6796580fa86 100644 (file)
@@ -23,6 +23,7 @@
 #include "libavcodec/internal.h"
 #include "avformat.h"
 #include "internal.h"
+#include "config.h"
 
 /* Enable function pointer definitions for runtime loading. */
 #define AVSC_NO_DECLSPEC
 #else
   #include <dlfcn.h>
   #include <avxsynth/avxsynth_c.h>
-    #if defined (__APPLE__)
-      #define AVISYNTH_LIB "libavxsynth.dylib"
-    #else
-      #define AVISYNTH_LIB "libavxsynth.so"
-    #endif
+  #define AVISYNTH_NAME "libavxsynth"
+  #define AVISYNTH_LIB AVISYNTH_NAME SLIBSUF
 
   #define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_LOCAL)
   #define GetProcAddress dlsym