[network-manager-applet] build: fix compilation with glib >= 2.25.12 (bgo #626424)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] build: fix compilation with glib >= 2.25.12 (bgo #626424)
- Date: Tue, 10 Aug 2010 18:42:38 +0000 (UTC)
commit fa9fc090e59c3b1745da05e066a335d516b756d4
Author: Vincent Untz <vuntz gnome org>
Date: Mon Aug 9 10:34:11 2010 -0500
build: fix compilation with glib >= 2.25.12 (bgo #626424)
Work around API breakage in glib.
src/utils/tests/test-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/utils/tests/test-utils.c b/src/utils/tests/test-utils.c
index 7eb1ffa..83b8ffe 100644
--- a/src/utils/tests/test-utils.c
+++ b/src/utils/tests/test-utils.c
@@ -413,7 +413,11 @@ test_ap_hash_foobar_asdf11_adhoc_wpa_rsn (void *f, TestData *d)
g_assert (strcmp (d->foobar_adhoc_wpa_rsn, d->asdf11_adhoc_wpa_rsn));
}
+#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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]