]> sigrok.org Git - libsigrok.git/commitdiff
Quick workaround for g_match_info_unref().
authorUwe Hermann <redacted>
Thu, 11 Oct 2012 21:46:30 +0000 (23:46 +0200)
committerUwe Hermann <redacted>
Thu, 11 Oct 2012 21:57:26 +0000 (23:57 +0200)
libsigrok-internal.h

index 8bbae93b2c6a7b57c227dace91bbfda5434eeb04..2cb8fe4eef9e939887bd007e7f694925ce06f43b 100644 (file)
 #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)