[gegl] Issue #132 - gegl-0.4.14 Windows compilation fails



commit b3ff0df080d133bbdb394c3db40d4f9d2980a8a6
Author: Ell <ell_se yahoo com>
Date:   Thu Mar 28 17:05:18 2019 -0400

    Issue #132 - gegl-0.4.14 Windows compilation fails
    
    Test for G_OS_WIN32 *after* including glib headers.

 gegl/gegl-config.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
index 65df46dd8..233c6e1d6 100644
--- a/gegl/gegl-config.c
+++ b/gegl/gegl-config.c
@@ -19,9 +19,6 @@
 #include "config.h"
 
 #include <string.h>
-#ifdef G_OS_WIN32
-#include <windows.h>
-#endif
 
 #include <glib-object.h>
 #include <glib/gprintf.h>
@@ -37,6 +34,10 @@
 #include <unistd.h>
 #endif
 
+#ifdef G_OS_WIN32
+#include <windows.h>
+#endif
+
 G_DEFINE_TYPE (GeglConfig, gegl_config, G_TYPE_OBJECT)
 
 static GObjectClass * parent_class = NULL;


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