summaryrefslogtreecommitdiff
path: root/girepository/giversionmacros.h
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-12-09 18:04:49 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-12-09 18:26:26 +0100
commit9df8c614ddff47edb985e27de7e163122d3c795b (patch)
treefb21b2736afacbdf78eb0664c3870597bd53e5ba /girepository/giversionmacros.h
parent9b683265a0d0236a55cab5d43814b3547fe82425 (diff)
downloadgobject-introspection-9df8c614ddff47edb985e27de7e163122d3c795b.tar.gz
docs: fix gtk-doc warnings and update version infos
Move things around and rename things until gtk-doc is happy. This also moves the "Since" annotations to the next stable releases and adds version added info for g_callable_info_get_instance_ownership_transfer() and g_struct_info_find_field().
Diffstat (limited to 'girepository/giversionmacros.h')
-rw-r--r--girepository/giversionmacros.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/girepository/giversionmacros.h b/girepository/giversionmacros.h
index 3c2faf47..bf8a0861 100644
--- a/girepository/giversionmacros.h
+++ b/girepository/giversionmacros.h
@@ -139,4 +139,18 @@
# define GI_AVAILABLE_IN_1_44 _GI_EXTERN
#endif
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_46
+# define GI_DEPRECATED_IN_1_46 GLIB_DEPRECATED
+# define GI_DEPRECATED_IN_1_46_FOR(f) GLIB_DEPRECATED_FOR(f)
+#else
+# define GI_DEPRECATED_IN_1_46 _GI_EXTERN
+# define GI_DEPRECATED_IN_1_46_FOR(f) _GI_EXTERN
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_46
+# define GI_AVAILABLE_IN_1_46 GLIB_UNAVAILABLE(2, 46)
+#else
+# define GI_AVAILABLE_IN_1_46 _GI_EXTERN
+#endif
+
#endif /* __GIVERSIONMACROS_H__ */