mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove now unused plugin verification section and data
it should've been added even if QT_NO_PLUGIN_CHECK was defined btw, now only ELF header is checked tho Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d2e041543b
commit
9e87457f4b
1 changed files with 7 additions and 19 deletions
|
@ -24,34 +24,22 @@
|
|||
|
||||
#include <QtCore/qpointer.h>
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
typedef QObject *(*QtPluginInstanceFunction)();
|
||||
|
||||
#define Q_EXPORT_PLUGIN(PLUGIN) \
|
||||
Q_EXPORT_PLUGIN2(PLUGIN, PLUGIN)
|
||||
|
||||
#if !defined(QT_NO_PLUGIN_CHECK)
|
||||
# define Q_PLUGIN_VERIFICATION_SECTION \
|
||||
__attribute__((section (".ktplugin"))) __attribute__((used)) \
|
||||
static const char kt_plugin_verification_data[] = QT_VERSION_HEX_STR;
|
||||
#else
|
||||
# define Q_PLUGIN_VERIFICATION_SECTION
|
||||
#endif
|
||||
|
||||
// NOTE: if you change pattern, you MUST change the pattern in
|
||||
// qlibrary.cpp as well. changing the pattern will break all
|
||||
// backwards compatibility as well (no old plugins will be loaded).
|
||||
#define Q_EXPORT_PLUGIN2(PLUGIN, PLUGINCLASS) \
|
||||
Q_PLUGIN_VERIFICATION_SECTION \
|
||||
extern "C" Q_DECL_EXPORT QT_PREPEND_NAMESPACE(QObject) * kt_plugin_instance() \
|
||||
{ \
|
||||
static QT_PREPEND_NAMESPACE(QPointer)<QT_PREPEND_NAMESPACE(QObject)> _instance(new PLUGINCLASS); \
|
||||
return _instance; \
|
||||
}
|
||||
extern "C" Q_DECL_EXPORT QT_PREPEND_NAMESPACE(QObject) * kt_plugin_instance() \
|
||||
{ \
|
||||
static QT_PREPEND_NAMESPACE(QPointer)<QT_PREPEND_NAMESPACE(QObject)> _instance(new PLUGINCLASS); \
|
||||
return _instance; \
|
||||
}
|
||||
|
||||
#define Q_EXPORT_PLUGIN(PLUGIN) Q_EXPORT_PLUGIN2(PLUGIN, PLUGIN)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
#endif // Q_PLUGIN_H
|
||||
|
|
Loading…
Add table
Reference in a new issue