summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-03-29 15:18:09 +0200
committerCarlos Garnacho <carlosg@gnome.org>2016-04-05 18:56:34 +0200
commite26d7d92ec8e8edcedeb5c44c21baf9e589595c8 (patch)
tree2a85c767d3d4eadb152b24220fcc99e5a44486b3
parentc6e40de500534df321d2150229a16215054fce38 (diff)
downloadclutter-e26d7d92ec8e8edcedeb5c44c21baf9e589595c8.tar.gz
Add version macros for 1.28
-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 3b5a18edf..777ec45ed 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -388,4 +388,22 @@
# define CLUTTER_AVAILABLE_IN_1_26 _CLUTTER_EXTERN
#endif
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_28
+# define CLUTTER_DEPRECATED_IN_1_28 CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_28_FOR(f) CLUTTER_DEPRECATED_FOR(f)
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28 CLUTTER_DEPRECATED_MACRO
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28_FOR(f) CLUTTER_DEPRECATED_MACRO_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_28 _CLUTTER_EXTERN
+# define CLUTTER_DEPRECATED_IN_1_28_FOR(f) _CLUTTER_EXTERN
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_28
+# define CLUTTER_AVAILABLE_IN_1_28 CLUTTER_UNAVAILABLE(1, 28)
+#else
+# define CLUTTER_AVAILABLE_IN_1_28 _CLUTTER_EXTERN
+#endif
+
#endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index b7a86b686..d5b6196f3 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -264,6 +264,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_26 (G_ENCODE_VERSION (1, 26))
+/**
+ * CLUTTER_VERSION_1_28:
+ *
+ * A macro that evaluates to the 1.28 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.28
+ */
+#define CLUTTER_VERSION_1_28 (G_ENCODE_VERSION (1, 28))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/