diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-01-11 18:17:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-01-18 23:10:18 -0500 |
commit | cbaad3dbd9fa7676f3bf081e9e258b5e1de99367 (patch) | |
tree | fa6ba3a760fb30e8f0e090d38966adb328be4177 | |
parent | ee43a6a60386c8fdcb79cd12b7acec7498e4ecd6 (diff) | |
download | gtk+-cbaad3dbd9fa7676f3bf081e9e258b5e1de99367.tar.gz |
Add version macros for 4.2
These will be needed for adding new API.
-rw-r--r-- | gdk/gdkversionmacros.h.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in index 3c6d6fbf05..b6d0960a7f 100644 --- a/gdk/gdkversionmacros.h.in +++ b/gdk/gdkversionmacros.h.in @@ -78,6 +78,14 @@ */ #define GDK_VERSION_4_0 (G_ENCODE_VERSION (4, 0)) +/** + * GDK_VERSION_4_2: + * + * A macro that evaluates to the 4.2 version of GDK, in a format + * that can be used by the C pre-processor. + */ +#define GDK_VERSION_4_2 (G_ENCODE_VERSION (4, 2)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target, with a hard backstop to the @@ -175,4 +183,19 @@ # define GDK_DEPRECATED_IN_4_0_FOR(f) _GDK_EXTERN #endif + +#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_2 +# define GDK_AVAILABLE_IN_4_2 GDK_UNAVAILABLE(4, 2) +#else +# define GDK_AVAILABLE_IN_4_2 _GDK_EXTERN +#endif + +#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_2 +# define GDK_DEPRECATED_IN_4_2 GDK_DEPRECATED +# define GDK_DEPRECATED_IN_4_2_FOR(f) GDK_DEPRECATED_FOR(f) +#else +# define GDK_DEPRECATED_IN_4_2 _GDK_EXTERN +# define GDK_DEPRECATED_IN_4_2_FOR(f) _GDK_EXTERN +#endif + #endif /* __GDK_VERSION_MACROS_H__ */ |