From: Martin Q. <mqu...@us...> - 2007-10-11 09:57:23
|
Update of /cvsroot/flexml/flexml In directory sc8-pr-cvs17:/tmp/cvs-serv15477 Modified Files: skel Log Message: Do not load unistd on windows platforms since this does not exist Index: skel =================================================================== RCS file: /cvsroot/flexml/flexml/skel,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- skel 22 Sep 2006 13:19:22 -0000 1.39 +++ skel 11 Oct 2007 09:57:24 -0000 1.40 @@ -30,13 +30,21 @@ /* ANSI headers. */ #include <stdlib.h> /* for realloc() -- needed here when using flex 2.5.4 */ -#include <unistd.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <stdarg.h> #include <ctype.h> - + +#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__) +# ifndef __STRICT_ANSI__ +# include <io.h> +# include <process.h> +# endif +#else +# include <unistd.h> +#endif + #ifndef FLEXML_INDEXSTACKSIZE #define FLEXML_INDEXSTACKSIZE 1000 #endif |