summaryrefslogtreecommitdiff
path: root/gdk/gdkversionmacros.h.in
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-03-17 03:07:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-03-17 11:27:53 -0400
commit2ca30bf8e8aa8879d5c525141fd20ca1275957e4 (patch)
tree63fff2d2efbf89ae3478909ff7d91582338f84c0 /gdk/gdkversionmacros.h.in
parent3bc8b2dea4afb0a66093bfb30c3ee0529fdd4632 (diff)
downloadgtk+-2ca30bf8e8aa8879d5c525141fd20ca1275957e4.tar.gz
Define 3.10 version macros
Diffstat (limited to 'gdk/gdkversionmacros.h.in')
-rw-r--r--gdk/gdkversionmacros.h.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/gdk/gdkversionmacros.h.in b/gdk/gdkversionmacros.h.in
index fa56f9fa32..38cf70dd05 100644
--- a/gdk/gdkversionmacros.h.in
+++ b/gdk/gdkversionmacros.h.in
@@ -100,6 +100,16 @@
*/
#define GDK_VERSION_3_8 (G_ENCODE_VERSION (3, 8))
+/**
+ * GDK_VERSION_3_10:
+ *
+ * A macro that evaluates to the 3.10 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 3.10
+ */
+#define GDK_VERSION_3_10 (G_ENCODE_VERSION (3, 10))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
@@ -241,4 +251,18 @@
# define GDK_AVAILABLE_IN_3_8
#endif
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_10
+# define GDK_DEPRECATED_IN_3_10 GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_10_FOR(f) GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_10
+# define GDK_DEPRECATED_IN_3_10_FOR(f)
+#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_10
+# define GDK_AVAILABLE_IN_3_10 GDK_UNAVAILABLE(3, 10)
+#else
+# define GDK_AVAILABLE_IN_3_10
+#endif
+
#endif /* __GDK_VERSION_MACROS_H__ */