[network-manager-applet/NMA_0_8] build: fix compilation with glib >= 2.25.12 (bgo #626424)



commit 7143a4c40d05c857e2c8e817e0e2f768936bf66c
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]