From 9a910e44aa4198a64e664cd9e123f28bd81879ec Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 18 Jun 2023 17:46:42 +0100 Subject: [PATCH] Add versioning macros for 1.78 --- giversionmacros.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/giversionmacros.h b/giversionmacros.h index 1a7e11ddb..372889e4c 100644 --- a/giversionmacros.h +++ b/giversionmacros.h @@ -209,4 +209,18 @@ # define GI_AVAILABLE_IN_1_76 _GI_EXTERN #endif +#if defined(GLIB_VERSION_2_78) && GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_78 +# define GI_DEPRECATED_IN_1_78 GI_DEPRECATED +# define GI_DEPRECATED_IN_1_78_FOR(f) GI_DEPRECATED_FOR(f) +#else +# define GI_DEPRECATED_IN_1_78 _GI_EXTERN +# define GI_DEPRECATED_IN_1_78_FOR(f) _GI_EXTERN +#endif + +#if defined(GLIB_VERSION_2_78) && GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_78 +# define GI_AVAILABLE_IN_1_78 GI_UNAVAILABLE(2, 78) +#else +# define GI_AVAILABLE_IN_1_78 _GI_EXTERN +#endif + #endif /* __GIVERSIONMACROS_H__ */