[glib] Add GLIB_VERSION_2_36 and related



commit eb2f5c1e0f0ffef490334434469fe9fe33d68cf6
Author: Dan Winship <danw gnome org>
Date:   Wed Sep 5 09:44:24 2012 -0400

    Add GLIB_VERSION_2_36 and related

 docs/reference/glib/glib-sections.txt |    2 ++
 glib/gversionmacros.h                 |   24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt
index 2ca7bfa..aacb2cc 100644
--- a/docs/reference/glib/glib-sections.txt
+++ b/docs/reference/glib/glib-sections.txt
@@ -118,6 +118,8 @@ GLIB_VERSION_2_26
 GLIB_VERSION_2_28
 GLIB_VERSION_2_30
 GLIB_VERSION_2_32
+GLIB_VERSION_2_34
+GLIB_VERSION_2_36
 GLIB_VERSION_MIN_REQUIRED
 GLIB_VERSION_MAX_ALLOWED
 GLIB_DISABLE_DEPRECATION_WARNINGS
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index ed8a5ce..04718ce 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -87,6 +87,16 @@
  */
 #define GLIB_VERSION_2_34       (G_ENCODE_VERSION (2, 34))
 
+/**
+ * GLIB_VERSION_2_36:
+ *
+ * A macro that evaluates to the 2.36 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.36
+ */
+#define GLIB_VERSION_2_36       (G_ENCODE_VERSION (2, 36))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */
@@ -247,4 +257,18 @@
 # define GLIB_AVAILABLE_IN_2_34
 #endif
 
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_36
+# define GLIB_DEPRECATED_IN_2_36                GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_36_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_36
+# define GLIB_DEPRECATED_IN_2_36_FOR(f)
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_36
+# define GLIB_AVAILABLE_IN_2_36                 GLIB_UNAVAILABLE(2, 36)
+#else
+# define GLIB_AVAILABLE_IN_2_36
+#endif
+
 #endif /*  __G_VERSION_MACROS_H__ */



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