[gtksourceview] gtksourceview/gtksourcelanguage.c: Check for G_OS_WIN32 Later



commit 463c7f8d6aa5a195b8c2831c2c09c01838683d78
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Sep 3 18:50:36 2015 +0800

    gtksourceview/gtksourcelanguage.c: Check for G_OS_WIN32 Later
    
    G_OS_WIN32 is only available after one includes the GLib headers,
    so defer it a bit, so that io.h will be included correctly.

 gtksourceview/gtksourcelanguage.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage.c b/gtksourceview/gtksourcelanguage.c
index bda8ee6..8d80ab7 100644
--- a/gtksourceview/gtksourcelanguage.c
+++ b/gtksourceview/gtksourcelanguage.c
@@ -26,9 +26,6 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef G_OS_WIN32
-#include <io.h>
-#endif
 
 #include <string.h>
 #include <fcntl.h>
@@ -39,6 +36,10 @@
 #include "gtksourcelanguage-private.h"
 #include "gtksourcelanguage.h"
 
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
+
 /**
  * SECTION:language
  * @Short_description: Represents a syntax highlighted language


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