From 6768820b5be9e117be0c386620a334a8c5f75f6c Mon Sep 17 00:00:00 2001 From: XMuli Date: Thu, 14 Jul 2022 22:07:26 +0800 Subject: [PATCH] fix: msvc and release is a build failure --- src/qtacrylichelper_global.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/qtacrylichelper_global.h b/src/qtacrylichelper_global.h index 9b973c5..47318c8 100644 --- a/src/qtacrylichelper_global.h +++ b/src/qtacrylichelper_global.h @@ -27,19 +27,19 @@ #include #ifndef QTACRYLICHELPER_API -#ifdef QTACRYLICHELPER_STATIC -#define QTACRYLICHELPER_API -#else -#ifdef QTACRYLICHELPER_BUILD_LIBRARY -#define QTACRYLICHELPER_API Q_DECL_EXPORT -#else -#define QTACRYLICHELPER_API Q_DECL_IMPORT -#endif -#endif + #ifdef QTACRYLICHELPER_STATIC + #define QTACRYLICHELPER_API + #else + #ifdef QTACRYLICHELPER_BUILD_LIBRARY + #define QTACRYLICHELPER_API Q_DECL_EXPORT + #else + #define QTACRYLICHELPER_API Q_DECL_EXPORT // Q_DECL_IMPORT + #endif + #endif #endif #if defined(Q_OS_WIN) && !defined(Q_OS_WINDOWS) -#define Q_OS_WINDOWS + #define Q_OS_WINDOWS #endif #ifndef Q_DISABLE_MOVE @@ -55,7 +55,7 @@ #endif #if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0)) -#define qAsConst(i) std::as_const(i) + #define qAsConst(i) std::as_const(i) #endif namespace _qam::Global {