summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2014-05-19 17:55:52 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2014-05-19 17:55:52 +0100
commitd708c3076550e09de146b8cf3832137f5d7ec9d0 (patch)
tree28ff32baf835bd5b19ee8d263972440bc3c57061
parent1eb6f2420b951157ca5ebd3d01f06a2cd0596bda (diff)
downloadclutter-d708c3076550e09de146b8cf3832137f5d7ec9d0.tar.gz
Provide 1.20 version macros
-rw-r--r--clutter/clutter-macros.h14
-rw-r--r--clutter/clutter-version.h.in10
2 files changed, 24 insertions, 0 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 85bde4966..3c21e0b2c 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -310,4 +310,18 @@
# define CLUTTER_AVAILABLE_IN_1_18 _CLUTTER_EXTERN
#endif
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_20
+# define CLUTTER_DEPRECATED_IN_1_20 CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_20_FOR(f) CLUTTER_DEPRECATED_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_20 _CLUTTER_EXTERN
+# define CLUTTER_DEPRECATED_IN_1_20_FOR(f) _CLUTTER_EXTERN
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_20
+# define CLUTTER_AVAILABLE_IN_1_20 CLUTTER_UNAVAILABLE(1, 20)
+#else
+# define CLUTTER_AVAILABLE_IN_1_20 _CLUTTER_EXTERN
+#endif
+
#endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index eb5398f26..cdd3a60b5 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -224,6 +224,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_18 (G_ENCODE_VERSION (1, 18))
+/**
+ * CLUTTER_VERSION_1_20:
+ *
+ * A macro that evaluates to the 1.18 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))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/