From ffb165a58d360d1453f6ced227ae645951bfb8b6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 26 Jul 2021 16:39:24 +0100 Subject: Add version macros for 1.70 We are going to introduce new API. --- girepository/giversionmacros.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/girepository/giversionmacros.h b/girepository/giversionmacros.h index a941ee2d..273af725 100644 --- a/girepository/giversionmacros.h +++ b/girepository/giversionmacros.h @@ -165,4 +165,10 @@ # define GI_AVAILABLE_IN_1_66 _GI_EXTERN #endif +#if defined(GLIB_VERSION_2_70) && GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_70 +# define GI_AVAILABLE_IN_1_70 GLIB_UNAVAILABLE(2, 70) +#else +# define GI_AVAILABLE_IN_1_70 _GI_EXTERN +#endif + #endif /* __GIVERSIONMACROS_H__ */ -- cgit v1.2.1