From: erg <devnull@localhost>
Date: Thu, 27 Jul 2006 03:44:05 +0000 (+0000)
Subject: Add additional include files for Windows build to eliminate more warnings
X-Git-Tag: LAST_LIBGRAPH~32^2~6034
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cd7ad688629901bc264e5dc12c7ed2b10e669b5;p=graphviz

Add additional include files for Windows build to eliminate more warnings
---

diff --git a/plugin/core/gvloadimage_core.c b/plugin/core/gvloadimage_core.c
index 9419d1eb8..3f236375f 100644
--- a/plugin/core/gvloadimage_core.c
+++ b/plugin/core/gvloadimage_core.c
@@ -20,6 +20,9 @@
 
 #include <stdlib.h>
 #include <sys/types.h>
+#ifdef WIN32
+#include <io.h>
+#endif
 #include <sys/stat.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c
index 57f2b510d..4cf277db9 100644
--- a/plugin/core/gvrender_core_svg.c
+++ b/plugin/core/gvrender_core_svg.c
@@ -18,6 +18,11 @@
 #include "config.h"
 #endif
 
+#ifdef WIN32
+#include <io.h>
+#include <compat.h>
+#endif
+
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c
index 6f7afa036..d6eedb979 100644
--- a/plugin/gd/gvrender_gd.c
+++ b/plugin/gd/gvrender_gd.c
@@ -18,6 +18,9 @@
 #include "config.h"
 #endif
 
+#ifdef WIN32
+#include <io.h>
+#endif
 #include <stdlib.h>
 #include <stddef.h>
 #include <string.h>