From: Jasper St. Pierre Date: Tue, 1 Jan 2013 09:28:00 +0000 (-0500) Subject: c: Add support for TAGLIB_STATIC to the C bindings X-Git-Tag: v1.9~87^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d52e97dfcd1c4c7385c1ca9c334e9571da330162;p=taglib c: Add support for TAGLIB_STATIC to the C bindings Otherwise, we'll fail with dllimport/dllexport linking errors on Windows. --- diff --git a/bindings/c/tag_c.h b/bindings/c/tag_c.h index ab5dd202..2e8b752f 100644 --- a/bindings/c/tag_c.h +++ b/bindings/c/tag_c.h @@ -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