summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2022-10-10 13:30:24 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2022-10-10 13:30:24 +0000
commit5e072816e8354d93af3db1aef7a7f4bd8c0d6e8b (patch)
tree0109c25508bc565cea0855f58ab8554fca5698bb
parentf780507d5b92005df725ab9b24cf0b23dd9d9bb5 (diff)
parent29681b4b77f2706b10b7f8c1ab47f695dce21e21 (diff)
downloadlibglnx-5e072816e8354d93af3db1aef7a7f4bd8c0d6e8b.tar.gz
Merge branch 'wip/smcv/easy-constants' into 'master'
Add backports of straightforward constants See merge request GNOME/libglnx!37
-rw-r--r--glnx-backports.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/glnx-backports.h b/glnx-backports.h
index 0c5fabe..6f766a3 100644
--- a/glnx-backports.h
+++ b/glnx-backports.h
@@ -64,6 +64,26 @@ gboolean glnx_set_object (GObject **object_ptr,
#endif /* !GLIB_CHECK_VERSION(2, 44, 0) */
+#if !GLIB_CHECK_VERSION(2, 38, 0)
+#define G_SPAWN_DEFAULT ((GSpawnFlags) 0)
+#endif
+
+#if !GLIB_CHECK_VERSION(2, 42, 0)
+#define G_OPTION_FLAG_NONE ((GOptionFlags) 0)
+#endif
+
+#ifndef G_DBUS_METHOD_INVOCATION_HANDLED /* added in 2.68 */
+#define G_DBUS_METHOD_INVOCATION_HANDLED TRUE
+#endif
+
+#ifndef G_DBUS_METHOD_INVOCATION_UNHANDLED /* added in 2.68 */
+#define G_DBUS_METHOD_INVOCATION_UNHANDLED FALSE
+#endif
+
+#if !GLIB_CHECK_VERSION(2, 70, 0)
+#define G_OPTION_ENTRY_NULL { NULL, 0, 0, 0, NULL, NULL, NULL }
+#endif
+
#ifndef g_assert_nonnull
#define g_assert_nonnull(x) g_assert (x != NULL)
#endif