Fix export for msvc

This commit is contained in:
Hannah von Reth 2015-11-28 13:15:09 +01:00
parent 916cbd5eb0
commit 10a18f8239
2 changed files with 5 additions and 3 deletions

View File

@ -32,9 +32,9 @@
using namespace Snore; using namespace Snore;
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
SNORE_EXPORT Q_LOGGING_CATEGORY(SNORE, "libsnorenotify", QtWarningMsg) Q_LOGGING_CATEGORY(SNORE, "libsnorenotify", QtWarningMsg)
#else #else
SNORE_EXPORT Q_LOGGING_CATEGORY(SNORE, "libsnorenotify") Q_LOGGING_CATEGORY(SNORE, "libsnorenotify")
#endif #endif

View File

@ -19,6 +19,8 @@
#ifndef SNOREGLOBALS #ifndef SNOREGLOBALS
#define SNOREGLOBALS #define SNOREGLOBALS
#include "snore_exports.h"
#include <QLoggingCategory> #include <QLoggingCategory>
namespace Snore namespace Snore
@ -31,7 +33,7 @@ enum SettingsType {
} }
Q_DECLARE_LOGGING_CATEGORY(SNORE) SNORE_EXPORT Q_DECLARE_LOGGING_CATEGORY(SNORE)
#endif // SNOREGLOBALS #endif // SNOREGLOBALS