From eb34b48d8c137aa74f996bfb920abe700175a4d0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 5 Feb 2018 21:34:10 +0100 Subject: [PATCH] Use explicit extern "C" in cpp file. --- src/surf/plugins/host_dvfs.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() +} -- 2.20.1