diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-09-28 13:24:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-09-28 13:30:01 -0400 |
commit | 0c02573c474a1e5cf2c6b476f79552a98fd81c1c (patch) | |
tree | 94088d6e3798077c9caa756c389f483a9c17d673 /gdk/gdkversionmacros.h.in | |
parent | 4257e1ce4f0d3a18e8bc32cd29b049b56a02ec6e (diff) | |
download | gtk+-0c02573c474a1e5cf2c6b476f79552a98fd81c1c.tar.gz |
Add 4.10 version macros
Diffstat (limited to 'gdk/gdkversionmacros.h.in')
-rw-r--r-- | gdk/gdkversionmacros.h.in | 24 |
1 files changed, 24 insertions, 0 deletions
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__ */ |