Add GLIB_VERSION_2_36 and related
authorDan Winship <danw@gnome.org>
Wed, 5 Sep 2012 13:44:24 +0000 (09:44 -0400)
committerDan Winship <danw@gnome.org>
Wed, 3 Oct 2012 20:36:38 +0000 (16:36 -0400)
docs/reference/glib/glib-sections.txt
glib/gversionmacros.h

index 2ca7bfa..aacb2cc 100644 (file)
@@ -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
index ed8a5ce..04718ce 100644 (file)
  */
 #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
  */
 # 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__ */