[gnome-commander] plugins: prevent C++ name mangling for exported functions
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] plugins: prevent C++ name mangling for exported functions
- Date: Sun, 3 Jan 2010 13:45:20 +0000 (UTC)
commit 572d08df6353b0dc0ba5858eb2f75fba03b9f571
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Jan 3 14:38:42 2010 +0100
plugins: prevent C++ name mangling for exported functions
plugins/cvs/cvs-plugin.cc | 4 ++--
plugins/fileroller/file-roller-plugin.cc | 4 ++--
plugins/test/test-plugin.cc | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/cvs/cvs-plugin.cc b/plugins/cvs/cvs-plugin.cc
index fccd9ce..a8cfd31 100644
--- a/plugins/cvs/cvs-plugin.cc
+++ b/plugins/cvs/cvs-plugin.cc
@@ -386,13 +386,13 @@ GnomeCmdPlugin *cvs_plugin_new ()
}
-GnomeCmdPlugin *create_plugin ()
+extern "C" GnomeCmdPlugin *create_plugin ()
{
return cvs_plugin_new ();
}
-PluginInfo *get_plugin_info ()
+extern "C" PluginInfo *get_plugin_info ()
{
if (!plugin_nfo.authors)
{
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index 5c837a7..aa6f11a 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -472,13 +472,13 @@ GnomeCmdPlugin *file_roller_plugin_new ()
}
-GnomeCmdPlugin *create_plugin ()
+extern "C" GnomeCmdPlugin *create_plugin ()
{
return file_roller_plugin_new ();
}
-PluginInfo *get_plugin_info ()
+extern "C" PluginInfo *get_plugin_info ()
{
if (!plugin_nfo.authors)
{
diff --git a/plugins/test/test-plugin.cc b/plugins/test/test-plugin.cc
index ba1248d..9f8ef89 100644
--- a/plugins/test/test-plugin.cc
+++ b/plugins/test/test-plugin.cc
@@ -207,13 +207,13 @@ GnomeCmdPlugin *test_plugin_new ()
}
-GnomeCmdPlugin *create_plugin ()
+extern "C" GnomeCmdPlugin *create_plugin ()
{
return test_plugin_new ();
}
-PluginInfo *get_plugin_info ()
+extern "C" PluginInfo *get_plugin_info ()
{
if (!plugin_nfo.authors)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]