Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Access to SIMIX data without resorting to a request (and thus do not rely specificall...
[simgrid.git] / include / smpi / smpif.h.in
index b8d3ccd..890712b 100644 (file)
@@ -7,19 +7,18 @@
 #ifndef SMPIF_H
 #define SMPIF_H
 
-#cmakedefine HAVE_SMPI_F2C_H @HAVE_SMPI_F2C_H@
+#cmakedefine HAVE_F2C_H @HAVE_SMPI_F2C_H@
 
-#ifdef HAVE_SMPI_F2C_H
-       #undef min //Need because first def in xbt.h
-       #undef max //Need because first def in xbt.h
-       #include <f2c.h>
+#ifndef HAVE_F2C_H
+#error F2C is mandatory
 #endif
 
 #include <xbt/misc.h>
+#include <smpi/smpi.h>
+#include <f2c.h>
 
 XBT_PUBLIC(int) smpi_process_argc(void);
 XBT_PUBLIC(int) smpi_process_getarg(integer* index, char* dst, ftnlen len);
-XBT_PUBLIC(int) smpi_global_rank(void);
 XBT_PUBLIC(int) smpi_global_size(void);
 
 #endif