From 06bcf231cab00bfbf28f910c6ec3ca6680957cb6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 3 Mar 2016 16:04:36 -0800 Subject: [PATCH] Export symbols without DLL mangling on Windows if FFMS_STATIC is defined --- include/ffms.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ffms.h b/include/ffms.h index 27f21d20be..b0efc2a3f2 100644 --- a/include/ffms.h +++ b/include/ffms.h @@ -64,7 +64,7 @@ #endif // And now for some symbol hide-and-seek... -#if defined(_WIN32) // MSVC +#if defined(_WIN32) && !defined(FFMS_STATIC) // MSVC # if defined(FFMS_EXPORTS) // building the FFMS2 library itself, with visible API symbols # define FFMS_API(ret) FFMS_EXTERN_C __declspec(dllexport) ret FFMS_CC # define FFMS_DEPRECATED_API(ret) FFMS_EXTERN_C FFMS_DEPRECATED __declspec(dllexport) ret FFMS_CC