diff options
author | Timothy Pearson <[email protected]> | 2012-01-08 21:45:03 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-08 21:45:03 -0600 |
commit | 5e47b11f231d3b096b52355cc285e124f257986b (patch) | |
tree | 0bc94e3894ccf97b828cde2696dd7dea1cc94378 /src/kernel/qgplugin.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/kernel/qgplugin.h')
-rw-r--r-- | src/kernel/qgplugin.h | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/src/kernel/qgplugin.h b/src/kernel/qgplugin.h index 3fa4493..ba0914b 100644 --- a/src/kernel/qgplugin.h +++ b/src/kernel/qgplugin.h @@ -93,35 +93,19 @@ return i->iface(); \ } -# ifdef Q_WS_WIN -# ifdef Q_CC_BOR -# define Q_EXPORT_PLUGIN(PLUGIN) \ - Q_PLUGIN_VERIFICATION_DATA \ - Q_EXTERN_C __declspec(dllexport) \ - const char * __stdcall qt_ucm_query_verification_data() \ - { return qt_ucm_verification_data; } \ - Q_EXTERN_C __declspec(dllexport) QUnknownInterface* \ - __stdcall ucm_instantiate() \ - Q_PLUGIN_INSTANTIATE( PLUGIN ) -# else -# define Q_EXPORT_PLUGIN(PLUGIN) \ - Q_PLUGIN_VERIFICATION_DATA \ - Q_EXTERN_C __declspec(dllexport) \ - const char *qt_ucm_query_verification_data() \ - { return qt_ucm_verification_data; } \ - Q_EXTERN_C __declspec(dllexport) QUnknownInterface* ucm_instantiate() \ - Q_PLUGIN_INSTANTIATE( PLUGIN ) -# endif -# else -# define Q_EXPORT_PLUGIN(PLUGIN) \ +#if defined(Q_WS_WIN) && defined(Q_CC_BOR) +# define Q_STDCALL __stdcall +#else +# define Q_STDCALL +#endif + +#define Q_EXPORT_PLUGIN(PLUGIN) \ Q_PLUGIN_VERIFICATION_DATA \ - Q_EXTERN_C \ - const char *qt_ucm_query_verification_data() \ + Q_EXTERN_C Q_EXPORT \ + const char * Q_STDCALL qt_ucm_query_verification_data() \ { return qt_ucm_verification_data; } \ - Q_EXTERN_C QUnknownInterface* ucm_instantiate() \ + Q_EXTERN_C Q_EXPORT QUnknownInterface* Q_STDCALL ucm_instantiate() \ Q_PLUGIN_INSTANTIATE( PLUGIN ) -# endif - #endif struct QUnknownInterface; |