Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: msvc and release is a build failure #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/qtacrylichelper_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
#include <QtCore/qglobal.h>

#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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course deleting the following two lines directly will also fail to compile. Although it is a bit strange.

#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
Expand All @@ -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 {
Expand Down