[glib] Introduce version macros for 2.40



commit fbe3ce89a8a3696393d504fdd4372b86837eac6a
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Sep 23 17:46:58 2013 -0400

    Introduce version macros for 2.40

 glib/gversionmacros.h |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index b591534..19d58a0 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -107,6 +107,16 @@
  */
 #define GLIB_VERSION_2_38       (G_ENCODE_VERSION (2, 38))
 
+/**
+ * GLIB_VERSION_2_40:
+ *
+ * A macro that evaluates to the 2.38 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.40
+ */
+#define GLIB_VERSION_2_40       (G_ENCODE_VERSION (2, 40))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */
@@ -296,4 +306,18 @@
 # define GLIB_AVAILABLE_IN_2_38                 _GLIB_EXTERN
 #endif
 
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_40
+# define GLIB_DEPRECATED_IN_2_40                GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_40_FOR(f)         GLIB_DEPRECATED_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_40                _GLIB_EXTERN
+# define GLIB_DEPRECATED_IN_2_40_FOR(f)         _GLIB_EXTERN
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_40
+# define GLIB_AVAILABLE_IN_2_40                 GLIB_UNAVAILABLE(2, 40)
+#else
+# define GLIB_AVAILABLE_IN_2_40                 _GLIB_EXTERN
+#endif
+
 #endif /*  __G_VERSION_MACROS_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]