projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52d0460
)
Bug 669538-glib-compile-resources.c: Include io.h on Windows
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 7 Feb 2012 06:41:24 +0000
(14:41 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Fri, 10 Feb 2012 00:53:52 +0000
(08:53 +0800)
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
patch
|
blob
|
history
diff --git
a/gio/glib-compile-resources.c
b/gio/glib-compile-resources.c
index 1d67cc56b691f8dca4e0f5ccc6241c5ededd8c14..9d54eecaad2c5b5a6c0955ae0558b2c4fde0b38c 100644
(file)
--- 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