From e26d7d92ec8e8edcedeb5c44c21baf9e589595c8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 29 Mar 2016 15:18:09 +0200 Subject: Add version macros for 1.28 --- clutter/clutter-macros.h | 18 ++++++++++++++++++ clutter/clutter-version.h.in | 10 ++++++++++ 2 files changed, 28 insertions(+) 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 */ -- cgit v1.2.1