diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-04-14 12:29:58 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-04-14 12:29:58 +0100 |
commit | 4006b8524d8aba496a3849822aed2254a0e25b89 (patch) | |
tree | 12c4db95f773e6893d71be3cafeef4c71ca0bd24 | |
parent | 877e58a6b4ecc6e634891d31c877fb2baf447a18 (diff) | |
download | clutter-4006b8524d8aba496a3849822aed2254a0e25b89.tar.gz |
Add version macros for 1.24
-rw-r--r-- | clutter/clutter-macros.h | 14 | ||||
-rw-r--r-- | clutter/clutter-version.h.in | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h index dc593f15f..e78207e80 100644 --- a/clutter/clutter-macros.h +++ b/clutter/clutter-macros.h @@ -338,4 +338,18 @@ # define CLUTTER_AVAILABLE_IN_1_22 _CLUTTER_EXTERN #endif +#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_24 +# define CLUTTER_DEPRECATED_IN_1_24 CLUTTER_DEPRECATED +# define CLUTTER_DEPRECATED_IN_1_24_FOR(f) CLUTTER_DEPRECATED_FOR(f) +#else +# define CLUTTER_DEPRECATED_IN_1_24 _CLUTTER_EXTERN +# define CLUTTER_DEPRECATED_IN_1_24_FOR(f) _CLUTTER_EXTERN +#endif + +#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_24 +# define CLUTTER_AVAILABLE_IN_1_24 CLUTTER_UNAVAILABLE(1, 24) +#else +# define CLUTTER_AVAILABLE_IN_1_24 _CLUTTER_EXTERN +#endif + #endif /* __CLUTTER_MACROS_H__ */ diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in index bcee39f69..766332331 100644 --- a/clutter/clutter-version.h.in +++ b/clutter/clutter-version.h.in @@ -244,6 +244,16 @@ G_BEGIN_DECLS */ #define CLUTTER_VERSION_1_22 (G_ENCODE_VERSION (1, 22)) +/** + * CLUTTER_VERSION_1_24: + * + * A macro that evaluates to the 1.24 version of Clutter, in a format + * that can be used by the C pre-processor. + * + * Since: 1.24 + */ +#define CLUTTER_VERSION_1_24 (G_ENCODE_VERSION (1, 24)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */ |