From 7a166895a54c4037749229b9ec9d0c90d60987b5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 20 Apr 2018 14:39:13 +0200 Subject: More weird exports for windows --- common/domain/applicationdomaintype.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index c931e91..39e66ab 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -28,7 +28,7 @@ #include "bufferadaptor.h" #define SINK_ENTITY(TYPE, LOWERCASENAME) \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef QSharedPointer Ptr; \ using Entity::Entity; \ TYPE() = default; \ @@ -39,7 +39,7 @@ #define SINK_PROPERTY(TYPE, NAME, LOWERCASENAME) \ struct NAME { \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef TYPE Type; \ }; \ void set##NAME(const TYPE &value) { setProperty(NAME::name, QVariant::fromValue(value)); } \ @@ -48,7 +48,7 @@ #define SINK_EXTRACTED_PROPERTY(TYPE, NAME, LOWERCASENAME) \ struct NAME { \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef TYPE Type; \ }; \ void setExtracted##NAME(const TYPE &value) { setProperty(NAME::name, QVariant::fromValue(value)); } \ @@ -56,7 +56,7 @@ #define SINK_STATUS_PROPERTY(TYPE, NAME, LOWERCASENAME) \ struct NAME { \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef TYPE Type; \ }; \ void setStatus##NAME(const TYPE &value) { setProperty(NAME::name, QVariant::fromValue(value)); } \ @@ -64,7 +64,7 @@ #define SINK_REFERENCE_PROPERTY(TYPE, NAME, LOWERCASENAME) \ struct NAME { \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef Reference Type; \ typedef ApplicationDomain::TYPE ReferenceType; \ }; \ @@ -74,7 +74,7 @@ #define SINK_INDEX_PROPERTY(TYPE, NAME, LOWERCASENAME) \ struct NAME { \ - static constexpr const char *name = #LOWERCASENAME; \ + SINK_EXPORT static constexpr const char *name = #LOWERCASENAME; \ typedef TYPE Type; \ }; \ -- cgit v1.2.3