A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error detection of f2c.
[simgrid.git]
/
include
/
smpi
/
smpif.h
diff --git
a/include/smpi/smpif.h
b/include/smpi/smpif.h
index
c0eca8b
..
43a1f9b
100644
(file)
--- a/
include/smpi/smpif.h
+++ b/
include/smpi/smpif.h
@@
-7,7
+7,14
@@
#ifndef SMPIF_H
#define SMPIF_H
#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);
#include <xbt/misc.h>
XBT_PUBLIC(int) smpi_process_argc(void);