summaryrefslogtreecommitdiff
path: root/gobject/gsignal.h
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-08-26 18:50:16 +0300
committerPhilip Withnall <withnall@endlessm.com>2019-08-26 18:50:16 +0300
commitd196bfa4a4bdba4d251d956363cb5955b02bf0d1 (patch)
treedf29d498bb090196ef49609e7b15d31c1da60d24 /gobject/gsignal.h
parent9c34be697272aca1279ed45616c4c856b6bd71c2 (diff)
downloadglib-d196bfa4a4bdba4d251d956363cb5955b02bf0d1.tar.gz
glib: Mark various macros as available in certain versions of GLib
These macros wrap functions which were only introduced in certain versions of GLib. The functions are correctly marked as introduced in those versions, but the macros aren’t, which can result in not getting appropriate deprecation warnings if you’re using those APIs when you have said you’re targeting older GLib versions using `GLIB_VERSION_MAX_ALLOWED`. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1860
Diffstat (limited to 'gobject/gsignal.h')
-rw-r--r--gobject/gsignal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/gsignal.h b/gobject/gsignal.h
index 7825a863b..a79b9f662 100644
--- a/gobject/gsignal.h
+++ b/gobject/gsignal.h
@@ -450,7 +450,8 @@ void g_clear_signal_handler (gulong *handler_id_ptr,
g_signal_handler_disconnect ((instance), _handler_id); \
*(handler_id_ptr) = 0; \
} \
- } G_STMT_END
+ } G_STMT_END \
+ GLIB_AVAILABLE_MACRO_IN_2_62
/* --- overriding and chaining --- */
GLIB_AVAILABLE_IN_ALL