From 9dfe8647a49260942c36c10e28bdaa4f463fc818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 17 Feb 2019 04:36:03 +0100 Subject: [PATCH] Add KDE_EXPORT to public library symbols. This allows build with gcc hidden visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- katapult/common/actionregistry.h | 7 ++++++- katapult/common/cachedcatalog.h | 2 +- katapult/common/imagedisplay.h | 2 +- katapult/common/katapultaction.h | 7 ++++++- katapult/common/katapultcatalog.h | 2 +- katapult/common/katapultdisplay.h | 2 +- katapult/common/katapultitem.h | 2 +- katapult/common/match.h | 8 +++++++- 8 files changed, 24 insertions(+), 8 deletions(-) diff --git a/katapult/common/actionregistry.h b/katapult/common/actionregistry.h index 6cf1fa3..db9e6e6 100644 --- a/katapult/common/actionregistry.h +++ b/katapult/common/actionregistry.h @@ -20,7 +20,12 @@ #ifndef ACTIONREGISTRY_H #define ACTIONREGISTRY_H +#ifdef HAVE_CONFIG_H +#include +#endif + #include +#include class KatapultItem; class KatapultAction; @@ -28,7 +33,7 @@ class KatapultAction; /** @author Joe Ferris */ -class ActionRegistry{ +class KDE_EXPORT ActionRegistry{ public: ~ActionRegistry(); diff --git a/katapult/common/cachedcatalog.h b/katapult/common/cachedcatalog.h index e02e578..291b0d3 100644 --- a/katapult/common/cachedcatalog.h +++ b/katapult/common/cachedcatalog.h @@ -30,7 +30,7 @@ class KatapultItem; /** @author Joe Ferris */ -class CachedCatalog : public KatapultCatalog +class KDE_EXPORT CachedCatalog : public KatapultCatalog { Q_OBJECT diff --git a/katapult/common/imagedisplay.h b/katapult/common/imagedisplay.h index a9de837..aa99895 100644 --- a/katapult/common/imagedisplay.h +++ b/katapult/common/imagedisplay.h @@ -33,7 +33,7 @@ class TQFont; /** @author Joe Ferris, Bastian Holst */ -class ImageDisplay : public KatapultDisplay +class KDE_EXPORT ImageDisplay : public KatapultDisplay { Q_OBJECT diff --git a/katapult/common/katapultaction.h b/katapult/common/katapultaction.h index 7949a77..fd198a8 100644 --- a/katapult/common/katapultaction.h +++ b/katapult/common/katapultaction.h @@ -20,8 +20,13 @@ #ifndef KATAPULTACTION_H #define KATAPULTACTION_H +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include +#include class TQPixmap; class KatapultItem; @@ -29,7 +34,7 @@ class KatapultItem; /** @author Joe Ferris */ -class KatapultAction { +class KDE_EXPORT KatapultAction { public: virtual ~KatapultAction(); diff --git a/katapult/common/katapultcatalog.h b/katapult/common/katapultcatalog.h index 3ffef8d..2f717d3 100644 --- a/katapult/common/katapultcatalog.h +++ b/katapult/common/katapultcatalog.h @@ -32,7 +32,7 @@ class TDEConfigBase; /** @author Joe Ferris */ -class KatapultCatalog : public TQObject { +class KDE_EXPORT KatapultCatalog : public TQObject { Q_OBJECT diff --git a/katapult/common/katapultdisplay.h b/katapult/common/katapultdisplay.h index 4757d3e..320f393 100644 --- a/katapult/common/katapultdisplay.h +++ b/katapult/common/katapultdisplay.h @@ -33,7 +33,7 @@ class TDEConfigBase; /** @author Joe Ferris */ -class KatapultDisplay : public TQWidget +class KDE_EXPORT KatapultDisplay : public TQWidget { Q_OBJECT diff --git a/katapult/common/katapultitem.h b/katapult/common/katapultitem.h index aab98f8..1720d6c 100644 --- a/katapult/common/katapultitem.h +++ b/katapult/common/katapultitem.h @@ -30,7 +30,7 @@ class TQString; /** @author Joe Ferris */ -class KatapultItem : public TQObject { +class KDE_EXPORT KatapultItem : public TQObject { Q_OBJECT public: diff --git a/katapult/common/match.h b/katapult/common/match.h index 818158b..fa0eccb 100644 --- a/katapult/common/match.h +++ b/katapult/common/match.h @@ -20,12 +20,18 @@ #ifndef MATCH_H #define MATCH_H +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + class KatapultItem; /** @author Joe Ferris */ -class Match { +class KDE_EXPORT Match { public: Match(); Match(const KatapultItem *, int, unsigned int);