summaryrefslogtreecommitdiffstats
path: root/src/modules/editor/libkvieditor.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-01-20 19:27:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-01-25 19:30:38 +0900
commit5f11552ae34058d7f0db5c78812096352c639602 (patch)
tree9ac861a89484a38119c75ff2ee6abe19d8cf3916 /src/modules/editor/libkvieditor.cpp
parent22304a213f4028f0fdfb4712bc9056a7e3c6d89d (diff)
downloadkvirc-5f11552ae34058d7f0db5c78812096352c639602.tar.gz
kvirc-5f11552ae34058d7f0db5c78812096352c639602.zip
Add visibility attributes to library functions
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/editor/libkvieditor.cpp')
-rw-r--r--src/modules/editor/libkvieditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/editor/libkvieditor.cpp b/src/modules/editor/libkvieditor.cpp
index e265a8ff..faa14c81 100644
--- a/src/modules/editor/libkvieditor.cpp
+++ b/src/modules/editor/libkvieditor.cpp
@@ -83,12 +83,12 @@ KVIRC_MODULE(
// We want C linkage on this one: we want to be able to dlsym() it with a simple name
// FIXME: Is this portable enough ? Or is better to have a table entry ?
-KVIMODULEEXPORTFUNC KviScriptEditor * editor_module_createScriptEditor(TQWidget * par)
+extern "C" KVIMODULEEXPORTFUNC KviScriptEditor * editor_module_createScriptEditor(TQWidget * par)
{
return new KviScriptEditorImplementation(par);
}
-KVIMODULEEXPORTFUNC void editor_module_destroyScriptEditor(KviScriptEditor * e)
+extern "C" KVIMODULEEXPORTFUNC void editor_module_destroyScriptEditor(KviScriptEditor * e)
{
delete ((KviScriptEditorImplementation *)e);
}