summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-02 14:57:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-02 14:57:31 -0600
commitbbc80561c4a43b82c87c641483f8dc2aa507afac (patch)
tree9a7c30f483ced9afe3def6f22e9ad37d0d023825
parentaf02f76733bc43fed3ea99bc5b841615cf9bbd8f (diff)
downloadtqscintilla-bbc80561c4a43b82c87c641483f8dc2aa507afac.tar.gz
tqscintilla-bbc80561c4a43b82c87c641483f8dc2aa507afac.zip
Fix symbol visibility on gcc
-rw-r--r--qt/qextscintillaglobal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt/qextscintillaglobal.h b/qt/qextscintillaglobal.h
index 38335f0..aebd822 100644
--- a/qt/qextscintillaglobal.h
+++ b/qt/qextscintillaglobal.h
@@ -44,6 +44,12 @@
#define TQEXTSCINTILLA_EXPORT __declspec(dllexport)
#endif
+#else
+
+#if __GNUC__ >= 4
+#define TQEXTSCINTILLA_EXPORT __attribute__ ((visibility("default")))
+#endif
+
#endif
#if !defined(TQEXTSCINTILLA_EXPORT)