diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-08 21:45:03 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-08 21:45:03 -0600 |
commit | 5e47b11f231d3b096b52355cc285e124f257986b (patch) | |
tree | 0bc94e3894ccf97b828cde2696dd7dea1cc94378 /src/tools/qglobal.h | |
parent | e278b858739babff5cc19ca81a661e1256d162e7 (diff) | |
download | qt3-5e47b11f231d3b096b52355cc285e124f257986b.tar.gz qt3-5e47b11f231d3b096b52355cc285e124f257986b.zip |
Enable gcc visibility support in Qt3
This partially closes Bug 696
Diffstat (limited to 'src/tools/qglobal.h')
-rw-r--r-- | src/tools/qglobal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/qglobal.h b/src/tools/qglobal.h index 135c289..0fbd4aa 100644 --- a/src/tools/qglobal.h +++ b/src/tools/qglobal.h @@ -885,6 +885,10 @@ class QDataStream; # 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 |