diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-09-23 18:55:28 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-09-23 18:55:28 -0400 |
commit | 97acd7abb1e8c5a9796ac039ffcf4020b1ac18b5 (patch) | |
tree | a279ac3c190c63711f455c77e515bcecd680c8fb /gdk/gdkversionmacros.h.in | |
parent | a98e387be41efabcc1840e13a9d2552c3aba261a (diff) | |
download | gtk+-97acd7abb1e8c5a9796ac039ffcf4020b1ac18b5.tar.gz |
Introduce version macros for 3.12
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 1f92b9e5a8..c5781e82c5 100644 --- a/gdk/gdkversionmacros.h.in +++ b/gdk/gdkversionmacros.h.in @@ -114,6 +114,16 @@ */ #define GDK_VERSION_3_10 (G_ENCODE_VERSION (3, 10)) +/** + * GDK_VERSION_3_12: + * + * A macro that evaluates to the 3.12 version of GDK, in a format + * that can be used by the C pre-processor. + * + * Since: 3.12 + */ +#define GDK_VERSION_3_12 (G_ENCODE_VERSION (3, 12)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target @@ -271,4 +281,18 @@ # define GDK_AVAILABLE_IN_3_10 _GDK_EXTERN #endif +#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_12 +# define GDK_DEPRECATED_IN_3_12 GDK_DEPRECATED +# define GDK_DEPRECATED_IN_3_12_FOR(f) GDK_DEPRECATED_FOR(f) +#else +# define GDK_DEPRECATED_IN_3_12 _GDK_EXTERN +# define GDK_DEPRECATED_IN_3_12_FOR(f) _GDK_EXTERN +#endif + +#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_12 +# define GDK_AVAILABLE_IN_3_12 GDK_UNAVAILABLE(3, 12) +#else +# define GDK_AVAILABLE_IN_3_12 _GDK_EXTERN +#endif + #endif /* __GDK_VERSION_MACROS_H__ */ |