build: fix build with glib >= 2.25.12 (bgo #626421)
Work around an API break in glib.
This commit is contained in:
committed by
Dan Williams
parent
ed9e056987
commit
be28089dc4
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user