[gegl] gegl: guarantee G_OS_WIN32 is set up in platform dependent headers



commit 6950dda46c18f530609271f82f055c9f246ae5f4
Author: Edward E <develinthedetail gmail com>
Date:   Thu Dec 27 06:10:32 2018 -0600

    gegl: guarantee G_OS_WIN32 is set up in platform dependent headers
    
    Two gegl headers test for G_OS_WIN32, so have them include a glib header
    proactively. Currently, in every case in gegl where these two are
    included, a glib header had already been included. However, this is not
    assured to be true later, given the possibility of code creep.

 gegl/buffer/gegl-buffer-formats.h | 1 +
 gegl/gegl-types-internal.h        | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/gegl/buffer/gegl-buffer-formats.h b/gegl/buffer/gegl-buffer-formats.h
index 7d1d0b6e3..cff6077ae 100644
--- a/gegl/buffer/gegl-buffer-formats.h
+++ b/gegl/buffer/gegl-buffer-formats.h
@@ -23,6 +23,7 @@
 //G_BEGIN_DECLS
 
 #include <babl/babl.h>
+#include <glib-object.h>
 
 /* the code in babl for looking up models, formats and types is quick -
    but when formats end up being used as consts for comparisons in the core of
diff --git a/gegl/gegl-types-internal.h b/gegl/gegl-types-internal.h
index 19942eb8a..4adeb078f 100644
--- a/gegl/gegl-types-internal.h
+++ b/gegl/gegl-types-internal.h
@@ -21,6 +21,7 @@
 #define __GEGL_TYPES_INTERNAL_H__
 
 #include <babl/babl.h>
+#include <glib-object.h>
 
 G_BEGIN_DECLS
 


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