From: Matthias Clasen Date: Wed, 28 Sep 2022 17:24:09 +0000 (-0400) Subject: Add 4.10 version macros X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~227 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c02573c474a1e5cf2c6b476f79552a98fd81c1c;p=gtk4.git Add 4.10 version macros --- diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in index af8b9c3798..9c25dab76d 100644 --- a/gdk/gdkversionmacros.h.in +++ b/gdk/gdkversionmacros.h.in @@ -118,6 +118,16 @@ */ #define GDK_VERSION_4_8 (G_ENCODE_VERSION (4, 8)) +/** + * GDK_VERSION_4_10: + * + * A macro that evaluates to the 4.10 version of GDK, in a format + * that can be used by the C pre-processor. + * + * Since: 4.10 + */ +#define GDK_VERSION_4_10 (G_ENCODE_VERSION (4, 10)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target, with a hard backstop to the @@ -273,4 +283,18 @@ # define GDK_DEPRECATED_IN_4_8_FOR(f) _GDK_EXTERN #endif +#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_10 +# define GDK_AVAILABLE_IN_4_10 GDK_UNAVAILABLE(4, 10) +#else +# define GDK_AVAILABLE_IN_4_10 _GDK_EXTERN +#endif + +#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_10 +# define GDK_DEPRECATED_IN_4_10 GDK_DEPRECATED +# define GDK_DEPRECATED_IN_4_10_FOR(f) GDK_DEPRECATED_FOR(f) +#else +# define GDK_DEPRECATED_IN_4_10 _GDK_EXTERN +# define GDK_DEPRECATED_IN_4_10_FOR(f) _GDK_EXTERN +#endif + #endif /* __GDK_VERSION_MACROS_H__ */