summaryrefslogtreecommitdiff
path: root/libqcdm
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-08-09 10:31:45 -0500
committerDan Williams <dcbw@redhat.com>2010-08-09 10:31:45 -0500
commitbe28089dc4c1b07d9def45a3c763f432ae8322c4 (patch)
tree5ad144437ce8ad61f25f99e878febdff48ba7878 /libqcdm
parented9e056987a0d786178571aa859964badc043453 (diff)
build: fix build with glib >= 2.25.12 (bgo #626421)
Work around an API break in glib.
Diffstat (limited to 'libqcdm')
-rw-r--r--libqcdm/tests/test-qcdm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libqcdm/tests/test-qcdm.c b/libqcdm/tests/test-qcdm.c
index 86850802..4e6f0cfe 100644
--- a/libqcdm/tests/test-qcdm.c
+++ b/libqcdm/tests/test-qcdm.c
@@ -28,7 +28,11 @@ typedef struct {
gpointer com_data;
} TestData;
+#if GLIB_CHECK_VERSION(2,25,12)
+typedef GTestFixtureFunc TCFunc;
+#else
typedef void (*TCFunc)(void);
+#endif
#define TESTCASE(t, d) g_test_create_case (#t, 0, d, NULL, (TCFunc) t, NULL)