[gtk+/gestures: 1/20] gdk: Add 3.14 version macros



commit 9814eb705de7269992df5b469e7ada40c9be008d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 27 15:19:01 2014 +0100

    gdk: Add 3.14 version macros

 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 0c74e8d..097f023 100644
--- a/gdk/gdkversionmacros.h.in
+++ b/gdk/gdkversionmacros.h.in
@@ -122,6 +122,16 @@
  */
 #define GDK_VERSION_3_12        (G_ENCODE_VERSION (3, 12))
 
+/**
+ * GDK_VERSION_3_14:
+ *
+ * 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.14
+ */
+#define GDK_VERSION_3_14        (G_ENCODE_VERSION (3, 14))
+
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
@@ -293,4 +303,18 @@
 # define GDK_AVAILABLE_IN_3_12                _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_14
+# define GDK_DEPRECATED_IN_3_14               GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_14_FOR(f)        GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_14               _GDK_EXTERN
+# define GDK_DEPRECATED_IN_3_14_FOR(f)        _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_14
+# define GDK_AVAILABLE_IN_3_14                GDK_UNAVAILABLE(3, 14)
+#else
+# define GDK_AVAILABLE_IN_3_14                _GDK_EXTERN
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]