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