diff options
author | Simon McVittie <smcv@collabora.com> | 2022-07-27 15:42:43 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-08-19 10:55:12 +0100 |
commit | fabcdb3bd8c07fff03bc325a140df358c307855b (patch) | |
tree | fb56bb1761adad31ccdf702db30044a069f50db0 | |
parent | 26375b5308360764bc6604f292192b88a59ad3ce (diff) | |
download | libglnx-fabcdb3bd8c07fff03bc325a140df358c307855b.tar.gz |
backports: Backport G_SPAWN_DEFAULT
This makes the absence of flags a bit clearer to write.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | glnx-backports.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glnx-backports.h b/glnx-backports.h index 0c5fabe..3de9370 100644 --- a/glnx-backports.h +++ b/glnx-backports.h @@ -64,6 +64,10 @@ 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 + #ifndef g_assert_nonnull #define g_assert_nonnull(x) g_assert (x != NULL) #endif |