[gtk+] Define 3.10 version macros
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Define 3.10 version macros
- Date: Sun, 17 Mar 2013 15:27:32 +0000 (UTC)
commit 2ca30bf8e8aa8879d5c525141fd20ca1275957e4
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 17 03:07:57 2013 -0400
Define 3.10 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 fa56f9f..38cf70d 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]