From 4c888034f8117aa34d289f93e7f21ca1fcf67bea Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 8 Feb 2015 04:15:22 +0100
Subject: Try to fix build with older GLib
---
sensei-raw-ctl-gui.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sensei-raw-ctl-gui.c b/sensei-raw-ctl-gui.c
index 01d1e62..3a7de24 100644
--- a/sensei-raw-ctl-gui.c
+++ b/sensei-raw-ctl-gui.c
@@ -29,6 +29,18 @@
#include "config.h"
+#if ! GLIB_CHECK_VERSION (2, 34, 0)
+static void
+g_clear_pointer (void **pointer, void (*destroy) (void *))
+{
+ if (*pointer)
+ {
+ destroy (*pointer);
+ *pointer = NULL;
+ }
+}
+#endif // ! GLIB_CHECK_VERSION (2, 34)
+
/** User interface string for GtkBuilder. */
extern const char ui[];
--
cgit v1.2.3-70-g09d2