From d4e3ae990c55c3673c4d18870173d78c38dd6494 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 7 Feb 2012 14:41:24 +0800 Subject: [PATCH] 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 file changed, 3 insertions(+) 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 #include #include +#ifdef G_OS_WIN32 +#include +#endif #ifdef HAVE_SYS_WAIT_H #include #endif