From 4e7f87dde9f406ff0da5a240bb1c04c145a005c3 Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 21 Sep 2007 16:07:25 +0000 Subject: [PATCH 1/1] Visual C++ has no header named unistd.h git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4685 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surfxml.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/surf/surfxml.c b/src/surf/surfxml.c index eee52c07cd..3dd7c67571 100644 --- a/src/surf/surfxml.c +++ b/src/surf/surfxml.c @@ -1903,7 +1903,14 @@ const char rcs_surfxml_flexml[] = "$" "Id: flexml.pl,v 1.61 2006/09/13 16:34:33 wdowling Exp $"; /* ANSI headers. */ -#include +#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__) +# ifndef __STRICT_ANSI__ +# include +# include +# endif +#else +# include +#endif #include #include #include @@ -2185,7 +2192,14 @@ const char* *surfxml_statenames=NULL; * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ -#include +#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__) +# ifndef __STRICT_ANSI__ +# include +# include +# endif +#else +# include +#endif #endif #ifndef YY_EXTRA_TYPE -- 2.20.1