Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix error detection of f2c.
[simgrid.git] / include / smpi / smpif.h
index c0eca8b..43a1f9b 100644 (file)
@@ -7,7 +7,14 @@
 #ifndef SMPIF_H
 #define SMPIF_H
 
-#include <f2c.h>
+#include "gras_config.h" //For 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>
+#endif
+
 #include <xbt/misc.h>
 
 XBT_PUBLIC(int) smpi_process_argc(void);