From: Arnaud Giersch Date: Mon, 5 Feb 2018 20:34:10 +0000 (+0100) Subject: Use explicit extern "C" in cpp file. X-Git-Tag: v3.19~249 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/eb34b48d8c137aa74f996bfb920abe700175a4d0?ds=sidebyside Use explicit extern "C" in cpp file. --- diff --git a/src/surf/plugins/host_dvfs.cpp b/src/surf/plugins/host_dvfs.cpp index f912a4918c..d74cc16caa 100644 --- a/src/surf/plugins/host_dvfs.cpp +++ b/src/surf/plugins/host_dvfs.cpp @@ -204,7 +204,7 @@ static void on_host_added(simgrid::s4u::Host& host) } /* **************************** Public interface *************************** */ -SG_BEGIN_DECL() +extern "C" { /** \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?"); } - -SG_END_DECL() +}