mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02: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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user