build: fix compilation with glib >= 2.25.12

WOrk around glib API breakage.
This commit is contained in:
Dan Williams 2010-08-10 13:46:18 -05:00
parent 373ca90600
commit 41804010d6

View file

@ -671,7 +671,11 @@ test_find_token (void)
}
}
#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)