mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
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:
parent
6f34e84002
commit
3b039ab181
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user