gmain: Mark G_SOURCE_FUNC as available in 2.58

This means that GLib will generate appropriate deprecation warnings if
`GLIB_VERSION_MAX_ALLOWED` has been set to target a GLib version older
than 2.58.
This commit is contained in:
Benjamin Berg 2020-01-15 16:52:25 +01:00
parent 6f34e84002
commit 3b039ab181

View File

@ -188,7 +188,7 @@ typedef gboolean (*GSourceFunc) (gpointer user_data);
*
* Since: 2.58
*/
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f)) GLIB_AVAILABLE_MACRO_IN_2_58
/**
* GChildWatchFunc: