[cogl/wip/hadess/automake-1.16] Do not call deprecated GType API



commit 360dd9352c95beb0101c0a32c722f0f37126bad6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 4 12:17:51 2020 +0100

    Do not call deprecated GType API
    
    Only do that when building against very old GLib.

 cogl/cogl.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/cogl/cogl.c b/cogl/cogl.c
index ab89a6c4..d5fc63a5 100644
--- a/cogl/cogl.c
+++ b/cogl/cogl.c
@@ -174,7 +174,9 @@ _cogl_init (void)
 #endif
 
 #ifdef COGL_HAS_GTYPE_SUPPORT
+#if !GLIB_CHECK_VERSION (2, 36, 0)
       g_type_init ();
+#endif
 #endif
 
       _cogl_config_read ();


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