mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Merge branch '1860-macros-available-in' into 'master'
glib: Mark various macros as available in certain versions of GLib Closes #1860 See merge request GNOME/glib!1058
This commit is contained in:
commit
5998851d09
@ -619,7 +619,8 @@ void g_clear_handle_id (guint *tag_ptr,
|
|||||||
*_tag_ptr = 0; \
|
*_tag_ptr = 0; \
|
||||||
clear_func (_handle_id); \
|
clear_func (_handle_id); \
|
||||||
} \
|
} \
|
||||||
} G_STMT_END
|
} G_STMT_END \
|
||||||
|
GLIB_AVAILABLE_MACRO_IN_2_56
|
||||||
|
|
||||||
/* Idles, child watchers and timeouts */
|
/* Idles, child watchers and timeouts */
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
|
@ -119,7 +119,8 @@ gpointer g_try_realloc_n (gpointer mem,
|
|||||||
*_pp = NULL; \
|
*_pp = NULL; \
|
||||||
if (_ptr) \
|
if (_ptr) \
|
||||||
(destroy) (_ptr); \
|
(destroy) (_ptr); \
|
||||||
} G_STMT_END
|
} G_STMT_END \
|
||||||
|
GLIB_AVAILABLE_MACRO_IN_2_34
|
||||||
#else /* __GNUC__ */
|
#else /* __GNUC__ */
|
||||||
#define g_clear_pointer(pp, destroy) \
|
#define g_clear_pointer(pp, destroy) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
@ -137,7 +138,8 @@ gpointer g_try_realloc_n (gpointer mem,
|
|||||||
*_pp.out = NULL; \
|
*_pp.out = NULL; \
|
||||||
_destroy (_p); \
|
_destroy (_p); \
|
||||||
} \
|
} \
|
||||||
} G_STMT_END
|
} G_STMT_END \
|
||||||
|
GLIB_AVAILABLE_MACRO_IN_2_34
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -450,7 +450,8 @@ void g_clear_signal_handler (gulong *handler_id_ptr,
|
|||||||
g_signal_handler_disconnect ((instance), _handler_id); \
|
g_signal_handler_disconnect ((instance), _handler_id); \
|
||||||
*(handler_id_ptr) = 0; \
|
*(handler_id_ptr) = 0; \
|
||||||
} \
|
} \
|
||||||
} G_STMT_END
|
} G_STMT_END \
|
||||||
|
GLIB_AVAILABLE_MACRO_IN_2_62
|
||||||
|
|
||||||
/* --- overriding and chaining --- */
|
/* --- overriding and chaining --- */
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
|
Loading…
Reference in New Issue
Block a user