Revert "Improvde #include order consistency"
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 15 Jan 2013 07:47:17 +0000 (15:47 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 15 Jan 2013 11:35:52 +0000 (19:35 +0800)
This reverts commit f2e00a07f49d6ad0e8d790396bcdea913592ce33.

Moving the block up would prevent G_OS_WIN32 being checked correctly as
it is a macro that is defined by including the GLib header(s), at least for
Visual C++ builds.

https://bugzilla.gnome.org/show_bug.cgi?id=691769

gobject/glib-genmarshal.c

index c6083ed..6ef6ea7 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#ifdef G_OS_WIN32
-#include <io.h>
-#endif
-
 #include <glib/gstdio.h>
 
 #undef G_LOG_DOMAIN
 #include <glib.h>
 #include <glib/gprintf.h>
 
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
+
 /* --- defines --- */
 #define        PRG_NAME        "glib-genmarshal"
 #define        PKG_NAME        "GLib"