[glib/glib-2-44] Add version macros for 2.46
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-44] Add version macros for 2.46
- Date: Tue, 2 Jun 2015 14:05:39 +0000 (UTC)
commit aa17d614e65792eb37934c573e8699b567bdbdfc
Author: Richard Hughes <richard hughsie com>
Date: Tue Jun 2 14:58:31 2015 +0100
Add version macros for 2.46
glib/gversionmacros.h | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index c4c04ad..20788f4 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -152,6 +152,16 @@
#define GLIB_VERSION_2_44 (G_ENCODE_VERSION (2, 44))
/**
+ * GLIB_VERSION_2_46:
+ *
+ * A macro that evaluates to the 2.46 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.46
+ */
+#define GLIB_VERSION_2_46 (G_ENCODE_VERSION (2, 46))
+
+/**
* GLIB_VERSION_MIN_REQUIRED:
*
* A macro that should be defined by the user prior to including
@@ -366,4 +376,18 @@
# define GLIB_AVAILABLE_IN_2_44 _GLIB_EXTERN
#endif
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_46
+# define GLIB_DEPRECATED_IN_2_46 GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_46_FOR(f) GLIB_DEPRECATED_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_46 _GLIB_EXTERN
+# define GLIB_DEPRECATED_IN_2_46_FOR(f) _GLIB_EXTERN
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_46
+# define GLIB_AVAILABLE_IN_2_46 GLIB_UNAVAILABLE(2, 46)
+#else
+# define GLIB_AVAILABLE_IN_2_46 _GLIB_EXTERN
+#endif
+
#endif /* __G_VERSION_MACROS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]