From 941e15eea685127fc59b761a1f3acfb2a6ae9bba Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 6 Oct 2024 19:47:09 +0900 Subject: [PATCH] Fix symbol visibility. This is required to make the module loadable Signed-off-by: Michele Calgaro --- config.h.cmake | 2 +- malloryclient/config/malloryconfig.cpp | 2 +- malloryclient/malloryclient.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.h.cmake b/config.h.cmake index 1370df9..dad3ef3 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,7 +1,7 @@ #define VERSION "@VERSION@" // Defined if you have fvisibility and fvisibility-inlines-hidden support. -#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 +#cmakedefine __TDE_HAVE_GCC_VISIBILITY 1 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ diff --git a/malloryclient/config/malloryconfig.cpp b/malloryclient/config/malloryconfig.cpp index c3ec0c6..1f450ec 100644 --- a/malloryclient/config/malloryconfig.cpp +++ b/malloryclient/config/malloryconfig.cpp @@ -111,7 +111,7 @@ void MalloryConfig::defaults() extern "C" { - TQObject* allocate_config(TDEConfig* config, TQWidget* parent) { + TDE_EXPORT TQObject* allocate_config(TDEConfig* config, TQWidget* parent) { return (new MalloryConfig(config, parent)); } } diff --git a/malloryclient/malloryclient.cpp b/malloryclient/malloryclient.cpp index 722fec2..0e50d36 100644 --- a/malloryclient/malloryclient.cpp +++ b/malloryclient/malloryclient.cpp @@ -686,7 +686,7 @@ void MalloryClient::resize(const TQSize& s) extern "C" { - KDecorationFactory *create_factory() + TDE_EXPORT KDecorationFactory *create_factory() { return new MalloryHandler(); }