diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-28 14:14:02 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-29 17:24:56 +0100 |
commit | 13e00b70c08d85750784ea014080d1ce52604dac (patch) | |
tree | 9999d44358185214459ac59c94654061cff3c32e /gdk/gdkversionmacros.h.in | |
parent | 769ee1156de0cb2b4528e56234315848fc73acc8 (diff) | |
download | gtk+-13e00b70c08d85750784ea014080d1ce52604dac.tar.gz |
Add GDK_AVAILABLE_IN_3_90
Diffstat (limited to 'gdk/gdkversionmacros.h.in')
-rw-r--r-- | gdk/gdkversionmacros.h.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in index bc2365df3d..a42a34bc93 100644 --- a/gdk/gdkversionmacros.h.in +++ b/gdk/gdkversionmacros.h.in @@ -172,6 +172,16 @@ */ #define GDK_VERSION_3_22 (G_ENCODE_VERSION (3, 22)) +/** + * GDK_VERSION_3_90: + * + * A macro that evaluates to the 3.90 version of GDK, in a format + * that can be used by the C pre-processor. + * + * Since: 3.90 + */ +#define GDK_VERSION_3_90 (G_ENCODE_VERSION (3, 90)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */ @@ -412,5 +422,11 @@ # define GDK_AVAILABLE_IN_3_22 _GDK_EXTERN #endif +#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_90 +# define GDK_AVAILABLE_IN_3_90 GDK_UNAVAILABLE(3, 90) +#else +# define GDK_AVAILABLE_IN_3_90 _GDK_EXTERN +#endif + #endif /* __GDK_VERSION_MACROS_H__ */ |