[glib: 1/4] gversionmacros: add version macros for GLib 2.60
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] gversionmacros: add version macros for GLib 2.60
- Date: Mon, 3 Sep 2018 13:22:55 +0000 (UTC)
commit 6545e7558c458b83806d80f781c31a86344911b2
Author: Matthew Waters <matthew centricular com>
Date: Mon Aug 27 23:45:44 2018 +1000
gversionmacros: add version macros for GLib 2.60
glib/gversionmacros.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
---
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index 9d2995828..0ba8f635b 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -205,6 +205,16 @@
*/
#define GLIB_VERSION_2_58 (G_ENCODE_VERSION (2, 58))
+/**
+ * GLIB_VERSION_2_60:
+ *
+ * A macro that evaluates to the 2.60 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.60
+ */
+#define GLIB_VERSION_2_60 (G_ENCODE_VERSION (2, 60))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/
@@ -534,4 +544,18 @@
# define GLIB_AVAILABLE_IN_2_58 _GLIB_EXTERN
#endif
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_60
+# define GLIB_DEPRECATED_IN_2_60 GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_60_FOR(f) GLIB_DEPRECATED_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_60 _GLIB_EXTERN
+# define GLIB_DEPRECATED_IN_2_60_FOR(f) _GLIB_EXTERN
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_60
+# define GLIB_AVAILABLE_IN_2_60 GLIB_UNAVAILABLE(2, 60)
+#else
+# define GLIB_AVAILABLE_IN_2_60 _GLIB_EXTERN
+#endif
+
#endif /* __G_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]