Add version macros for Clutter 1.26

This commit is contained in:
Emmanuele Bassi 2015-11-18 11:52:53 +00:00
parent 8a63ea031d
commit 89a794ec46
2 changed files with 28 additions and 0 deletions

View File

@ -370,4 +370,22 @@
# define CLUTTER_AVAILABLE_IN_1_24 _CLUTTER_EXTERN
#endif
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_26
# define CLUTTER_DEPRECATED_IN_1_26 CLUTTER_DEPRECATED
# define CLUTTER_DEPRECATED_IN_1_26_FOR(f) CLUTTER_DEPRECATED_FOR(f)
# define CLUTTER_MACRO_DEPRECATED_IN_1_26 CLUTTER_DEPRECATED_MACRO
# define CLUTTER_MACRO_DEPRECATED_IN_1_26_FOR(f) CLUTTER_DEPRECATED_MACRO_FOR(f)
#else
# define CLUTTER_DEPRECATED_IN_1_26 _CLUTTER_EXTERN
# define CLUTTER_DEPRECATED_IN_1_26_FOR(f) _CLUTTER_EXTERN
# define CLUTTER_MACRO_DEPRECATED_IN_1_26
# define CLUTTER_MACRO_DEPRECATED_IN_1_26_FOR(f)
#endif
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_26
# define CLUTTER_AVAILABLE_IN_1_26 CLUTTER_UNAVAILABLE(1, 26)
#else
# define CLUTTER_AVAILABLE_IN_1_26 _CLUTTER_EXTERN
#endif
#endif /* __CLUTTER_MACROS_H__ */

View File

@ -254,6 +254,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_24 (G_ENCODE_VERSION (1, 24))
/**
* CLUTTER_VERSION_1_26:
*
* A macro that evaluates to the 1.26 version of Clutter, in a format
* that can be used by the C pre-processor.
*
* Since: 1.26
*/
#define CLUTTER_VERSION_1_26 (G_ENCODE_VERSION (1, 26))
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/