mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avisynth: Simplify shared library name construction
This commit is contained in:
parent
ec89f35e3e
commit
247aa7af7d
@ -23,6 +23,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
|
||||||
@ -37,11 +38,8 @@
|
|||||||
#else
|
#else
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <avxsynth/avxsynth_c.h>
|
#include <avxsynth/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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user