From da4f5e3f3be2211f476ed695c78bd92e936bb61e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 28 Jan 2022 16:10:00 +0200 Subject: [PATCH] remove redundant and internal Q_EXTERN_C definition Signed-off-by: Ivailo Monev --- src/core/plugin/qplugin.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/plugin/qplugin.h b/src/core/plugin/qplugin.h index 06991bfa2..73e0da858 100644 --- a/src/core/plugin/qplugin.h +++ b/src/core/plugin/qplugin.h @@ -27,8 +27,6 @@ QT_BEGIN_NAMESPACE -#define Q_EXTERN_C extern "C" - typedef QObject *(*QtPluginInstanceFunction)(); #define Q_EXPORT_PLUGIN(PLUGIN) \ @@ -47,7 +45,7 @@ typedef QObject *(*QtPluginInstanceFunction)(); // backwards compatibility as well (no old plugins will be loaded). #define Q_EXPORT_PLUGIN2(PLUGIN, PLUGINCLASS) \ Q_PLUGIN_VERIFICATION_SECTION \ - Q_EXTERN_C Q_DECL_EXPORT QT_PREPEND_NAMESPACE(QObject) * kt_plugin_instance() \ + extern "C" Q_DECL_EXPORT QT_PREPEND_NAMESPACE(QObject) * kt_plugin_instance() \ { \ static QT_PREPEND_NAMESPACE(QPointer) _instance(new PLUGINCLASS); \ return _instance; \