From: Modestas Vainius Subject: [PATCH] debian/gcc_visibility Support TAGLIB_EXPORT and TAGLIB_C_EXPORT with >= gcc 4.1. Signed-off-by: Modestas Vainius --- bindings/c/tag_c.h | 2 ++ taglib/taglib_export.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/bindings/c/tag_c.h b/bindings/c/tag_c.h index d70629e..5e3541a 100644 --- a/bindings/c/tag_c.h +++ b/bindings/c/tag_c.h @@ -35,6 +35,8 @@ extern "C" { #else #define TAGLIB_C_EXPORT __declspec(dllimport) #endif +#elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1) +#define TAGLIB_C_EXPORT __attribute__ ((visibility("default"))) #else #define TAGLIB_C_EXPORT #endif diff --git a/taglib/taglib_export.h b/taglib/taglib_export.h index d14d69f..6f30b42 100644 --- a/taglib/taglib_export.h +++ b/taglib/taglib_export.h @@ -32,6 +32,8 @@ #else #define TAGLIB_EXPORT __declspec(dllimport) #endif +#elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1) +#define TAGLIB_EXPORT __attribute__ ((visibility("default"))) #else #define TAGLIB_EXPORT #endif -- tg: (2a52182..) general/gcc_visibility_feature (depends on: upstream)