[libglnx/wip/smcv/easy-constants: 3/5] backports: Backport G_SPAWN_DEFAULT




commit fabcdb3bd8c07fff03bc325a140df358c307855b
Author: Simon McVittie <smcv collabora com>
Date:   Wed Jul 27 15:42:43 2022 +0100

    backports: Backport G_SPAWN_DEFAULT
    
    This makes the absence of flags a bit clearer to write.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 glnx-backports.h | 4 ++++
 1 file changed, 4 insertions(+)
---
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


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