diff options
author | Jan Lukas Gernert <jangernert@gmail.com> | 2021-08-23 07:54:27 +0200 |
---|---|---|
committer | Jan Lukas Gernert <jangernert@gmail.com> | 2021-08-23 07:54:27 +0200 |
commit | 88e796bb45066fb9f4ec4e388f5869407cf1797c (patch) | |
tree | 2ec48f18615b837fd098b729847ff3a134a87db2 | |
parent | 1310bf02189e404be96bdb5d38cf62bfa4da23eb (diff) | |
download | gtk+-88e796bb45066fb9f4ec4e388f5869407cf1797c.tar.gz |
Add 4.6 version macros
-rw-r--r-- | gdk/gdkversionmacros.h.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in index c4a4a5a10f..9c9ef8aa8a 100644 --- a/gdk/gdkversionmacros.h.in +++ b/gdk/gdkversionmacros.h.in @@ -94,6 +94,14 @@ */ #define GDK_VERSION_4_4 (G_ENCODE_VERSION (4, 4)) +/** + * GDK_VERSION_4_6: + * + * A macro that evaluates to the 4.6 version of GDK, in a format + * that can be used by the C pre-processor. + */ +#define GDK_VERSION_4_6 (G_ENCODE_VERSION (4, 6)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target, with a hard backstop to the @@ -221,4 +229,18 @@ # define GDK_DEPRECATED_IN_4_4_FOR(f) _GDK_EXTERN #endif +#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_6 +# define GDK_AVAILABLE_IN_4_6 GDK_UNAVAILABLE(4, 6) +#else +# define GDK_AVAILABLE_IN_4_6 _GDK_EXTERN +#endif + +#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_6 +# define GDK_DEPRECATED_IN_4_6 GDK_DEPRECATED +# define GDK_DEPRECATED_IN_4_6_FOR(f) GDK_DEPRECATED_FOR(f) +#else +# define GDK_DEPRECATED_IN_4_6 _GDK_EXTERN +# define GDK_DEPRECATED_IN_4_6_FOR(f) _GDK_EXTERN +#endif + #endif /* __GDK_VERSION_MACROS_H__ */ |