mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-08 06:00:38 -04:00
backports: Backport G_OPTION_FLAG_NONE, G_OPTION_ENTRY_NULL
These make tables of options a bit clearer to write. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
1 parent
fabcdb3bd8
commit
b5658723ff
1 file changed
+8
@@ -68,6 +68,14 @@ gboolean glnx_set_object (GObject **object_ptr,
|
||||
#define G_SPAWN_DEFAULT ((GSpawnFlags) 0)
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 42, 0)
|
||||
#define G_OPTION_FLAG_NONE ((GOptionFlags) 0)
|
||||
#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
|
||||
|
||||
Reference in new issue
Block a user