[glib] gio/gdbusauthmechanismsha1.c: Move G_OS_* checks down



commit a997cfe90fae92d13bd1bf7e7f45f2a2381c9f11
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Nov 26 13:16:15 2013 +0800

    gio/gdbusauthmechanismsha1.c: Move G_OS_* checks down
    
    The G_OS_* checks are only valid if the GLib headers have been previously
    included, so that io.h can be included properly on Windows

 gio/gdbusauthmechanismsha1.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index dae509e..36b16fe 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -26,6 +26,9 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <sys/types.h>
+
+#include <glib/gstdio.h>
+
 #ifdef G_OS_UNIX
 #include <unistd.h>
 #endif
@@ -33,8 +36,6 @@
 #include <io.h>
 #endif
 
-#include <glib/gstdio.h>
-
 #include "gdbusauthmechanismsha1.h"
 #include "gcredentials.h"
 #include "gdbuserror.h"


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