mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-23 09:40:08 +01:00
shared/nm-glib: add compat implementation for G_SOURCE_FUNC()
G_SOURCE_FUNC() was only added in glib 2.58.
This commit is contained in:
parent
0f4819ab36
commit
9c5741ccd2
1 changed files with 6 additions and 0 deletions
|
|
@ -569,4 +569,10 @@ _nm_g_value_unset (GValue *value)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 57, 2)
|
||||||
|
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
#endif /* __NM_GLIB_H__ */
|
#endif /* __NM_GLIB_H__ */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue