summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-11-18 11:52:53 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-11-18 11:54:26 +0000
commit89a794ec46844aa3c3c3bbdee26b2b07b1219e4d (patch)
tree418870ac1459f8866201ebb0e1ba27290077f663
parent8a63ea031d394ec0e983bfbd9f12ae0fe5e53a97 (diff)
downloadclutter-89a794ec46844aa3c3c3bbdee26b2b07b1219e4d.tar.gz
Add version macros for Clutter 1.26
-rw-r--r--clutter/clutter-macros.h18
-rw-r--r--clutter/clutter-version.h.in10
2 files changed, 28 insertions, 0 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index e630207fb..3b5a18edf 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -370,4 +370,22 @@
# define CLUTTER_AVAILABLE_IN_1_24 _CLUTTER_EXTERN
#endif
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_26
+# define CLUTTER_DEPRECATED_IN_1_26 CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_26_FOR(f) CLUTTER_DEPRECATED_FOR(f)
+# define CLUTTER_MACRO_DEPRECATED_IN_1_26 CLUTTER_DEPRECATED_MACRO
+# define CLUTTER_MACRO_DEPRECATED_IN_1_26_FOR(f) CLUTTER_DEPRECATED_MACRO_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_26 _CLUTTER_EXTERN
+# define CLUTTER_DEPRECATED_IN_1_26_FOR(f) _CLUTTER_EXTERN
+# define CLUTTER_MACRO_DEPRECATED_IN_1_26
+# define CLUTTER_MACRO_DEPRECATED_IN_1_26_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_26
+# define CLUTTER_AVAILABLE_IN_1_26 CLUTTER_UNAVAILABLE(1, 26)
+#else
+# define CLUTTER_AVAILABLE_IN_1_26 _CLUTTER_EXTERN
+#endif
+
#endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index 29eec45a0..b7a86b686 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -254,6 +254,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_24 (G_ENCODE_VERSION (1, 24))
+/**
+ * CLUTTER_VERSION_1_26:
+ *
+ * A macro that evaluates to the 1.26 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.26
+ */
+#define CLUTTER_VERSION_1_26 (G_ENCODE_VERSION (1, 26))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/