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 HAVE_FOOBAR flags handling
[simgrid.git]
/
src
/
xbt
/
automaton
/
parserPromela.lex
diff --git
a/src/xbt/automaton/parserPromela.lex
b/src/xbt/automaton/parserPromela.lex
index
04384ea
..
b0dd1eb
100644
(file)
--- a/
src/xbt/automaton/parserPromela.lex
+++ b/
src/xbt/automaton/parserPromela.lex
@@
-9,11
+9,15
@@
%{
#include "simgrid_config.h"
%{
#include "simgrid_config.h"
-#if
ndef
HAVE_UNISTD_H
+#if
!
HAVE_UNISTD_H
#define YY_NO_UNISTD_H /* hello Windows */
#define YY_NO_UNISTD_H /* hello Windows */
-static int isatty(int fd) {
- return 0;
-}
+
+#ifdef _MSC_VER
+# include <io.h>
+# include <process.h>
+# define _CRT_SECURE_NO_WARNINGS
+# define _CRT_NONSTDC_NO_WARNINGS
+#endif
#endif
#include <stdio.h>
#endif
#include <stdio.h>