From 1b3777f16911e944288443c3bbe0d15604c16a6e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 22 Mar 2012 10:11:11 +0000 Subject: [PATCH] version: Add 1.12 version macros --- clutter/clutter-macros.h | 14 ++++++++++++++ clutter/clutter-version.h.in | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h index 50eb021e2..dd8033dfb 100644 --- a/clutter/clutter-macros.h +++ b/clutter/clutter-macros.h @@ -248,6 +248,20 @@ # define CLUTTER_AVAILABLE_IN_1_10 #endif +#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_12 +# define CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED +# define CLUTTER_DEPRECATED_IN_1_12_FOR(f) CLUTTER_DEPRECATED_FOR(f) +#else +# define CLUTTER_DEPRECATED_IN_1_12 +# define CLUTTER_DEPRECATED_IN_1_12_FOR(f) +#endif + +#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_12 +# define CLUTTER_AVAILABLE_IN_1_12 CLUTTER_UNAVAILABLE(1, 12) +#else +# define CLUTTER_AVAILABLE_IN_1_12 +#endif + /** * CLUTTER_CAIRO_FORMAT_ARGB32: * diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in index fcddbd79c..0fa975948 100644 --- a/clutter/clutter-version.h.in +++ b/clutter/clutter-version.h.in @@ -184,6 +184,16 @@ G_BEGIN_DECLS */ #define CLUTTER_VERSION_1_10 (G_ENCODE_VERSION (1, 10)) +/** + * CLUTTER_VERSION_1_12: + * + * A macro that evaluates to the 1.12 version of Clutter, in a format + * that can be used by the C pre-processor. + * + * Since: 1.12 + */ +#define CLUTTER_VERSION_1_12 (G_ENCODE_VERSION (1, 12)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */