[gtk+] Introduce version macros for 3.12
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Introduce version macros for 3.12
- Date: Mon, 23 Sep 2013 22:55:44 +0000 (UTC)
commit 97acd7abb1e8c5a9796ac039ffcf4020b1ac18b5
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 23 18:55:28 2013 -0400
Introduce version macros for 3.12
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 1f92b9e..c5781e8 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]