Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use explicit extern "C" in cpp file.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 5 Feb 2018 20:34:10 +0000 (21:34 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 5 Feb 2018 20:43:30 +0000 (21:43 +0100)
src/surf/plugins/host_dvfs.cpp

index f912a49..d74cc16 100644 (file)
@@ -204,7 +204,7 @@ static void on_host_added(simgrid::s4u::Host& host)
 }
 
 /* **************************** Public interface *************************** */
 }
 
 /* **************************** Public interface *************************** */
-SG_BEGIN_DECL()
+extern "C" {
 
 /** \ingroup SURF_plugin_load
  * \brief Initializes the HostDvfs plugin
 
 /** \ingroup SURF_plugin_load
  * \brief Initializes the HostDvfs plugin
@@ -225,5 +225,4 @@ void sg_host_dvfs_plugin_init()
   xbt_cfg_register_string("plugin/dvfs/governor", "performance", nullptr,
                           "Which Governor should be used that adapts the CPU frequency?");
 }
   xbt_cfg_register_string("plugin/dvfs/governor", "performance", nullptr,
                           "Which Governor should be used that adapts the CPU frequency?");
 }
-
-SG_END_DECL()
+}