[glib] Add version macros for 2.52
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add version macros for 2.52
- Date: Wed, 12 Oct 2016 19:11:50 +0000 (UTC)
commit 67ce53058102905ac3c8f6f57b044616301d479b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 12 15:07:02 2016 -0400
Add version macros for 2.52
glib/gversionmacros.h | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index 1611eaf..cbbb4a7 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -165,6 +165,16 @@
*/
#define GLIB_VERSION_2_50 (G_ENCODE_VERSION (2, 50))
+/**
+ * GLIB_VERSION_2_52:
+ *
+ * A macro that evaluates to the 2.52 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.52
+ */
+#define GLIB_VERSION_2_52 (G_ENCODE_VERSION (2, 52))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/
@@ -438,4 +448,18 @@
# define GLIB_AVAILABLE_IN_2_50 _GLIB_EXTERN
#endif
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_52
+# define GLIB_DEPRECATED_IN_2_52 GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_52_FOR(f) GLIB_DEPRECATED_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_52 _GLIB_EXTERN
+# define GLIB_DEPRECATED_IN_2_52_FOR(f) _GLIB_EXTERN
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_52
+# define GLIB_AVAILABLE_IN_2_52 GLIB_UNAVAILABLE(2, 52)
+#else
+# define GLIB_AVAILABLE_IN_2_52 _GLIB_EXTERN
+#endif
+
#endif /* __G_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]