From ba4fe8873241fe9c59ed987c37feb8bd0ca134d3 Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 21 Sep 2007 15:52:12 +0000 Subject: [PATCH] Visual C++ has no header named unistd.h git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4666 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/graphxml.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/xbt/graphxml.c b/src/xbt/graphxml.c index 771613a90c..713c7bf451 100644 --- a/src/xbt/graphxml.c +++ b/src/xbt/graphxml.c @@ -1065,7 +1065,15 @@ const char rcs_graphxml_flexml[] = "$" "Id: flexml.pl,v 1.61 2006/09/13 16:34:33 wdowling Exp $"; /* ANSI headers. */ -#include +/* ANSI headers. */ +#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__) +# ifndef __STRICT_ANSI__ +# include +# include +# endif +#else +# include +#endif #include #include #include @@ -1281,7 +1289,15 @@ const char* *graphxml_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 +/* ANSI headers. */ +#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