]> granicus.if.org Git - taglib/commitdiff
Set visibility("default") for GCC on exported symbols
authorLukáš Lalinský <lalinsky@gmail.com>
Sat, 24 Oct 2009 11:07:41 +0000 (11:07 +0000)
committerLukáš Lalinský <lalinsky@gmail.com>
Sat, 24 Oct 2009 11:07:41 +0000 (11:07 +0000)
This does nothing with the current configuration, but it's useful if you compile the library with -fvisibility=hidden

Patch by Modestas Vainius

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1039693 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

bindings/c/tag_c.h
taglib/taglib_export.h

index 055da4e35c47d318c92753cdadcd89ae38b1fa4e..cb109275123d617e7a8bd3c69a0a6e13dad18061 100644 (file)
@@ -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
index a6894d4896ee3934b08df1da88797bd599fe8f48..f1345e94f359fed9c3338324a461430f93d34842 100644 (file)
@@ -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