From d52e97dfcd1c4c7385c1ca9c334e9571da330162 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 1 Jan 2013 04:28:00 -0500 Subject: [PATCH] c: Add support for TAGLIB_STATIC to the C bindings Otherwise, we'll fail with dllimport/dllexport linking errors on Windows. --- bindings/c/tag_c.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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