mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 21:30:41 +02:00
build: fix compilation with glib >= 2.25.12
WOrk around glib API breakage.
This commit is contained in:
parent
373ca90600
commit
41804010d6
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue