[glib] Bug 669538-glib-compile-resources.c: Include io.h on Windows



commit d4e3ae990c55c3673c4d18870173d78c38dd6494
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Feb 7 14:41:24 2012 +0800

    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.

 gio/glib-compile-resources.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 1d67cc5..9d54eec 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]