Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar: specify that these functions are not to be moved in a namespace
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 13 Mar 2017 21:58:55 +0000 (22:58 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 13 Mar 2017 21:58:55 +0000 (22:58 +0100)
src/smpi/smpi_global.cpp

index 1e6fd35..9ae72b3 100644 (file)
@@ -654,6 +654,8 @@ void smpi_global_destroy()
   smpi_free_static();
 }
 
+extern "C" {
+
 #ifndef WIN32
 
 void __attribute__ ((weak)) user_main_()
@@ -684,7 +686,6 @@ int __attribute__ ((weak)) main(int argc, char **argv)
 
 #endif
 
-extern "C" {
 static void smpi_init_logs(){
 
   /* Connect log categories.  See xbt/log.c */