aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parented9e056987a0d786178571aa859964badc043453 (diff)
build: fix build with glib >= 2.25.12 (bgo #626421)
Work around an API break in glib.
Diffstat (limited to 'src')
-rw-r--r--src/tests/test-modem-helpers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test-modem-helpers.c b/src/tests/test-modem-helpers.c
index 92a7af85..74d2d949 100644
--- a/src/tests/test-modem-helpers.c
+++ b/src/tests/test-modem-helpers.c
@@ -791,7 +791,11 @@ test_data_free (TestData *data)
}
+#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)