build: fix build with glib >= 2.25.12 (bgo #626421)

Work around an API break in glib.
This commit is contained in:
Vincent Untz
2010-08-09 10:31:45 -05:00
committed by Dan Williams
parent ed9e056987
commit be28089dc4
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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)
+4
View File
@@ -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)