summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-08 21:59:07 -0600
committerTimothy Pearson <[email protected]>2012-01-08 21:59:07 -0600
commit2ae2f3f719ab9316eb2addef265c78ab81327516 (patch)
tree58511ab39204ff6a35f45f892cf3510c9aba0174 /src/tools
parente9c23befee596e80f840ff9a1a1a3b849972f211 (diff)
downloadtqt3-2ae2f3f719ab9316eb2addef265c78ab81327516.tar.gz
tqt3-2ae2f3f719ab9316eb2addef265c78ab81327516.zip
Update tqt3 to support gcc visibility
This closes Bug 696
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qglobal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/qglobal.h b/src/tools/qglobal.h
index cf0e1e440..74dab69e6 100644
--- a/src/tools/qglobal.h
+++ b/src/tools/qglobal.h
@@ -887,6 +887,10 @@ class TQDataStream;
# define Q_TEMPLATE_EXTERN
# undef Q_DISABLE_COPY /* avoid unresolved externals */
# endif
+#elif defined(Q_CC_GNU) && __GNUC__ - 0 >= 4
+# define Q_EXPORT __attribute__((visibility("default")))
+# undef QT_MAKEDLL /* ignore these for other platforms */
+# undef QT_DLL
#else
# undef QT_MAKEDLL /* ignore these for other platforms */
# undef QT_DLL