c: Add support for TAGLIB_STATIC to the C bindings

Otherwise, we'll fail with dllimport/dllexport linking errors on
Windows.
This commit is contained in:
Jasper St. Pierre 2013-01-01 04:28:00 -05:00
parent 8329d6ac1a
commit d52e97dfcd

View File

@ -29,7 +29,9 @@
extern "C" {
#endif
#if defined(_WIN32) || defined(_WIN64)
#if defined(TAGLIB_STATIC)
#define TAGLIB_C_EXPORT
#elif defined(_WIN32) || defined(_WIN64)
#ifdef MAKE_TAGLIB_C_LIB
#define TAGLIB_C_EXPORT __declspec(dllexport)
#else