summaryrefslogtreecommitdiff
path: root/girepository/giversionmacros.h
diff options
context:
space:
mode:
authorCimbali <me@cimba.li>2021-11-01 17:22:50 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-11-23 23:04:26 +0000
commit55a18f528e490f17c7fd5d790cca6075bb375c51 (patch)
tree0b673cdecceec4d1c0d35fd7b39402686c3c413d /girepository/giversionmacros.h
parent2a4dede7c2fdc3e6a6a5b063449ab3a8c58c11c0 (diff)
downloadgobject-introspection-55a18f528e490f17c7fd5d790cca6075bb375c51.tar.gz
Create new API for libffi closures
Deprecate the previous API as per discussion in !283.
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 273af725..d1b1733c 100644
--- a/girepository/giversionmacros.h
+++ b/girepository/giversionmacros.h
@@ -171,4 +171,18 @@
# define GI_AVAILABLE_IN_1_70 _GI_EXTERN
#endif
+#if defined(GLIB_VERSION_2_72) && GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_72
+# define GI_DEPRECATED_IN_1_72 GLIB_DEPRECATED
+# define GI_DEPRECATED_IN_1_72_FOR(f) GLIB_DEPRECATED_FOR(f)
+#else
+# define GI_DEPRECATED_IN_1_72 _GI_EXTERN
+# define GI_DEPRECATED_IN_1_72_FOR(f) _GI_EXTERN
+#endif
+
+#if defined(GLIB_VERSION_2_72) && GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_72
+# define GI_AVAILABLE_IN_1_72 GLIB_UNAVAILABLE(2, 72)
+#else
+# define GI_AVAILABLE_IN_1_72 _GI_EXTERN
+#endif
+
#endif /* __GIVERSIONMACROS_H__ */