[glib/wip/task: 1/12] Add GLIB_VERSION_2_36 and related
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/task: 1/12] Add GLIB_VERSION_2_36 and related
- Date: Wed, 5 Sep 2012 14:13:11 +0000 (UTC)
commit 1ddbfb93582b4322f640df5f009e7a7b5f344a03
Author: Dan Winship <danw gnome org>
Date: Wed Sep 5 09:44:24 2012 -0400
Add GLIB_VERSION_2_36 and related
glib/gversionmacros.h | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
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]