cmake-plugin: 针对 MSVC 的 NDD_DECLARE_PLUGIN 修复

This commit is contained in:
zinface 2024-01-09 14:05:19 +08:00
parent 4c63813eeb
commit ecfc9273a4
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,8 @@ Q_DECLARE_INTERFACE(IPluginFramework, IPluginFramework_IID)
#include <functional>
#include <qsciscintilla.h>
#define NDD_EXPORTDLL
#if defined(Q_OS_WIN)
#if defined(NDD_EXPORTDLL)
#define NDD_EXPORT __declspec(dllexport)
@ -196,6 +198,7 @@ Q_DECLARE_INTERFACE(IPluginFramework, IPluginFramework_IID)
} \
\
qDebug() << strFileName; \
return 0; \
} \
#else