From: cherierm Date: Fri, 21 Sep 2007 16:07:25 +0000 (+0000) Subject: Visual C++ has no header named unistd.h X-Git-Tag: v3.3~1106 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4e7f87dde9f406ff0da5a240bb1c04c145a005c3?hp=9ee8810614e6bd6e779e3d90790aa586fe66c6a9 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 --- 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