blob: eae981933ed888e78bc4106e0518e513dc2a81de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
From: Modestas Vainius <modestas@vainius.eu>
Subject: [PATCH] debian/gcc_visibility
Support TAGLIB_EXPORT and TAGLIB_C_EXPORT with >= gcc 4.1.
Signed-off-by: Modestas Vainius <modestas@vainius.eu>
---
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)
|