[vala/staging] vala: Bump implicit target-glib to 2.48



commit f9bae0ef16c4c39ee0fbf4c1d67d57e62347b543
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Mar 19 22:54:07 2019 +0100

    vala: Bump implicit target-glib to 2.48
    
    Missing in 1229ead2f945d913b3264f898f363aa4bf46f217
    
    See https://gitlab.gnome.org/GNOME/vala/issues/671

 tests/parser/preprocessor-glib.vala | 8 ++++++++
 vala/valacodecontext.vala           | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/tests/parser/preprocessor-glib.vala b/tests/parser/preprocessor-glib.vala
index ee44f452e..effc2ecd2 100644
--- a/tests/parser/preprocessor-glib.vala
+++ b/tests/parser/preprocessor-glib.vala
@@ -27,6 +27,14 @@ void main () {
        assert_not_reached ();
 #elif !GLIB_2_40
        assert_not_reached ();
+#elif !GLIB_2_42
+       assert_not_reached ();
+#elif !GLIB_2_44
+       assert_not_reached ();
+#elif !GLIB_2_46
+       assert_not_reached ();
+#elif !GLIB_2_48
+       assert_not_reached ();
 #else
        assert (true);
 #endif
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 42e6dabb2..35f278938 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -560,7 +560,7 @@ public class Vala.CodeContext {
                }
 
                target_glib_major = 2;
-               target_glib_minor = 40;
+               target_glib_minor = 48;
 
                for (int i = 16; i <= target_glib_minor; i += 2) {
                        defines.add ("GLIB_2_%d".printf (i));


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