From: Uwe Hermann Date: Thu, 11 Oct 2012 21:46:30 +0000 (+0200) Subject: Quick workaround for g_match_info_unref(). X-Git-Tag: dsupstream~674 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=33df15f14440397bb8358fbf0939588c1b410e0c;p=libsigrok.git Quick workaround for g_match_info_unref(). --- diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 8bbae93b..2cb8fe4e 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -37,6 +37,11 @@ #define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) #endif +/* Versions < 2.30.0 of glib don't have g_match_info_unref(). */ +#if !GLIB_CHECK_VERSION(2,30,0) +#define g_match_info_unref g_match_info_free +#endif + /* Size of a datastore chunk in units */ #define DATASTORE_CHUNKSIZE (512 * 1024)