[gnome-commander/gcmd-1-3] plugins: prevent C++ name mangling for exported functions



commit d87bd8a568a1ec70477fa8a3f47363c2d3bc4099
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]