[clutter/clutter-1.22] Add 1.22 version macros



commit d2a2e5ba9cc3ebeec6a12e84d4d3ca0c0df29874
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Dec 11 22:32:36 2014 +0000

    Add 1.22 version macros
    
    The 1.22 cycle did start a while ago.

 clutter/clutter-macros.h     |   14 ++++++++++++++
 clutter/clutter-version.h.in |   12 +++++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 3c21e0b..dc593f1 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -324,4 +324,18 @@
 # define CLUTTER_AVAILABLE_IN_1_20              _CLUTTER_EXTERN
 #endif
 
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_22
+# define CLUTTER_DEPRECATED_IN_1_22             CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_22_FOR(f)      CLUTTER_DEPRECATED_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_22             _CLUTTER_EXTERN
+# define CLUTTER_DEPRECATED_IN_1_22_FOR(f)      _CLUTTER_EXTERN
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_22
+# define CLUTTER_AVAILABLE_IN_1_22              CLUTTER_UNAVAILABLE(1, 22)
+#else
+# define CLUTTER_AVAILABLE_IN_1_22              _CLUTTER_EXTERN
+#endif
+
 #endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index cdd3a60..bcee39f 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -227,13 +227,23 @@ G_BEGIN_DECLS
 /**
  * CLUTTER_VERSION_1_20:
  *
- * A macro that evaluates to the 1.18 version of Clutter, in a format
+ * A macro that evaluates to the 1.20 version of Clutter, in a format
  * that can be used by the C pre-processor.
  *
  * Since: 1.20
  */
 #define CLUTTER_VERSION_1_20    (G_ENCODE_VERSION (1, 20))
 
+/**
+ * CLUTTER_VERSION_1_22:
+ *
+ * A macro that evaluates to the 1.22 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.22
+ */
+#define CLUTTER_VERSION_1_22    (G_ENCODE_VERSION (1, 22))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */


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