#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