Add versioning macros for 1.78

This commit is contained in:
Emmanuele Bassi 2023-06-18 17:46:42 +01:00
parent fcd2026506
commit 9a910e44aa

View File

@ -209,4 +209,18 @@
# define GI_AVAILABLE_IN_1_76 _GI_EXTERN # define GI_AVAILABLE_IN_1_76 _GI_EXTERN
#endif #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__ */ #endif /* __GIVERSIONMACROS_H__ */