Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
intel somehow also matches __GNUC__
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 25 Jul 2018 22:57:34 +0000 (00:57 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 25 Jul 2018 22:57:34 +0000 (00:57 +0200)
src/smpi/internals/smpi_global.cpp

index 021bb07..5f63d1a 100644 (file)
@@ -42,13 +42,13 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_kernel, smpi, "Logging specific to SMPI (ke
 #include <boost/tokenizer.hpp>
 #include <boost/algorithm/string.hpp> /* trim_right / trim_left */
 
 #include <boost/tokenizer.hpp>
 #include <boost/algorithm/string.hpp> /* trim_right / trim_left */
 
-#if defined(__GNUC__)
+#if defined(__INTEL_COMPILER) || defined(__ICC)
+  extern "C" void for_rtl_init_ (int *, char **);
+#elif defined(__GNUC__)
   extern "C" void _gfortran_set_args(int, char **);
 #elif defined(__FLANG)
   extern "C" void __io_set_argc(int);
   extern "C" void __io_set_argv(char **);
   extern "C" void _gfortran_set_args(int, char **);
 #elif defined(__FLANG)
   extern "C" void __io_set_argc(int);
   extern "C" void __io_set_argv(char **);
-#elif defined(__INTEL_COMPILER) || defined(__ICC)
-  extern "C" void for_rtl_init_ (int *, char **);
 #endif
 
 #ifndef RTLD_DEEPBIND
 #endif
 
 #ifndef RTLD_DEEPBIND