summaryrefslogtreecommitdiffstats
path: root/twin-styles
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-07-10 00:31:42 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-07-10 00:31:42 +0200
commitaa772880377650c24e258970f5ee8540c3793e5c (patch)
treed66ca5cbd003563aef364ecbc1297021dd8d9bcf /twin-styles
parentfed5a8d5ad6d79254d4f3b4f427038b96034c549 (diff)
downloadtdeartwork-aa772880377650c24e258970f5ee8540c3793e5c.tar.gz
tdeartwork-aa772880377650c24e258970f5ee8540c3793e5c.zip
twin-style smooth-blend: Add KDE_EXPORT to the public symbols.
This solves the crash when using this twin-style if built with hidden visibility. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'twin-styles')
-rw-r--r--twin-styles/smooth-blend/client/config/smoothblendconfig.cpp10
-rw-r--r--twin-styles/smooth-blend/client/smoothblend.cpp8
2 files changed, 12 insertions, 6 deletions
diff --git a/twin-styles/smooth-blend/client/config/smoothblendconfig.cpp b/twin-styles/smooth-blend/client/config/smoothblendconfig.cpp
index 83f0afcf..f3c5c545 100644
--- a/twin-styles/smooth-blend/client/config/smoothblendconfig.cpp
+++ b/twin-styles/smooth-blend/client/config/smoothblendconfig.cpp
@@ -172,10 +172,12 @@ void smoothblendConfig::defaults() {
// Plugin Stuff //
//////////////////////////////////////////////////////////////////////////////
-extern "C" {
- TQObject* allocate_config(TDEConfig* config, TQWidget* parent) {
- return (new smoothblendConfig(config, parent));
- }
+extern "C"
+{
+ KDE_EXPORT TQObject* allocate_config(TDEConfig* config, TQWidget* parent)
+ {
+ return (new smoothblendConfig(config, parent));
+ }
}
#include "smoothblendconfig.moc"
diff --git a/twin-styles/smooth-blend/client/smoothblend.cpp b/twin-styles/smooth-blend/client/smoothblend.cpp
index 7c3adddd..31b23deb 100644
--- a/twin-styles/smooth-blend/client/smoothblend.cpp
+++ b/twin-styles/smooth-blend/client/smoothblend.cpp
@@ -59,8 +59,12 @@ const char default_right[] = "HIAX";
static const uint TIMERINTERVAL = 50; // msec
static const uint ANIMATIONSTEPS = 4;
-extern "C" KDecorationFactory* create_factory() {
- return new smoothblend::smoothblendFactory();
+extern "C"
+{
+ KDE_EXPORT KDecorationFactory* create_factory()
+ {
+ return new smoothblend::smoothblendFactory();
+ }
}
//////////////////////////////////////////////////////////////////////////////