Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Includes graphxml.h to allow compilation on Builder C++ compiler.
[simgrid.git] / src / xbt / graphxml.c
index 77dc705..f757c80 100644 (file)
@@ -1,3 +1,6 @@
+#include "graphxml.h"
+
+
 #line 2 "xbt/graphxml.c"
 
 #line 4 "xbt/graphxml.c"
@@ -1056,7 +1059,16 @@ const char rcs_graphxml_flexml[] =
  "$" "Id: flexml.pl,v 1.53 2006/07/18 12:12:06 mquinson Exp $";
 
 /* ANSI headers. */
-#include <unistd.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
+
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
@@ -1224,7 +1236,14 @@ 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 <unistd.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
 #endif
 
 #ifndef YY_EXTRA_TYPE