[vala/staging] glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50



commit 2bdd828d7c5aea1d47dad76fd7bcb286c3a4ae19
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Aug 17 08:46:18 2022 +0200

    glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/1350

 vapi/glib-2.0.vapi | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 472b79c80..88ca6a71f 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3881,7 +3881,11 @@ namespace GLib {
                public static bool if_continued (int status);
 
                [NoReturn]
+#if GLIB_2_50
+               [Version (since = "2.50")]
+#else
                [CCode (cname = "abort", cheader_filename = "stdlib.h")]
+#endif
                public void abort ();
                [NoReturn]
                [CCode (cname = "exit", cheader_filename = "stdlib.h")]


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