diff options
-rw-r--r-- | src/webchannel/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/webchannel/qwebchannelglobal.h | 15 |
2 files changed, 2 insertions, 14 deletions
diff --git a/src/webchannel/CMakeLists.txt b/src/webchannel/CMakeLists.txt index acd33fe..9e4b721 100644 --- a/src/webchannel/CMakeLists.txt +++ b/src/webchannel/CMakeLists.txt @@ -17,6 +17,7 @@ qt_internal_add_module(WebChannel Qt::Core PRIVATE_MODULE_INTERFACE Qt::CorePrivate + GENERATE_CPP_EXPORTS ) # Resources: diff --git a/src/webchannel/qwebchannelglobal.h b/src/webchannel/qwebchannelglobal.h index 59fb099..6f50bcb 100644 --- a/src/webchannel/qwebchannelglobal.h +++ b/src/webchannel/qwebchannelglobal.h @@ -41,19 +41,6 @@ #define QTWEBCHANNEL_H #include <QtCore/qglobal.h> - -QT_BEGIN_NAMESPACE - -#ifndef QT_STATIC -# if defined(QT_BUILD_WEBCHANNEL_LIB) -# define Q_WEBCHANNEL_EXPORT Q_DECL_EXPORT -# else -# define Q_WEBCHANNEL_EXPORT Q_DECL_IMPORT -# endif -#else -# define Q_WEBCHANNEL_EXPORT -#endif - -QT_END_NAMESPACE +#include <QtWebChannel/qtwebchannelexports.h> #endif // QTWEBCHANNEL_H |