On 03/09/13 18:27, Stephen Hutchinson wrote:
> +
> +// Platform-specific directives for AviSynth vs AvxSynth.
> +#ifdef _WIN32
> +  #include <windows.h>
> +  #undef EXTERN_C
> +  #include "compat/avisynth/avisynth_c.h"
> +  #include "compat/avisynth/avisynth_c_25.h"
> +  #define AVISYNTH_LIB "avisynth"
> +#else
> +  #include <dlfcn.h>
> +  #include "compat/avisynth/avxsynth_c.h"
> +   #if defined (__APPLE__)
> +     #define AVISYNTH_LIB "libavxsynth.dylib"
> +   #else
> +     #define AVISYNTH_LIB "libavxsynth.so"
> +   #endif
> +
> +  #define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_GLOBAL)
> +  #define GetProcAddress dlsym
> +  #define FreeLibrary dlclose
> +#endif
> +

I guess the compat could be safely dropped

#include <avisynth/avsynth_c.h>

and such should be enough.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to