summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2012-02-07 14:41:24 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2012-02-10 08:53:52 +0800
commitd4e3ae990c55c3673c4d18870173d78c38dd6494 (patch)
tree1961276129ed86f31088df74b819b332f6713474
parent52d046009607e35b4665fc94aa392874d9aaacb8 (diff)
downloadglib-d4e3ae990c55c3673c4d18870173d78c38dd6494.tar.gz
Bug 669538-glib-compile-resources.c: Include io.h on Windows
This is needed for close() on Windows (Visual C++ specifically) so that no C4013 (aka Implicit declaration of ...) errors/warnings will be emitted.
-rw-r--r--gio/glib-compile-resources.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 1d67cc56b..9d54eecaa 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -30,6 +30,9 @@
#include <stdio.h>
#include <locale.h>
#include <errno.h>
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif