Add version macros for Clutter 1.26
This commit is contained in:
parent
8a63ea031d
commit
89a794ec46
@ -370,4 +370,22 @@
|
|||||||
# define CLUTTER_AVAILABLE_IN_1_24 _CLUTTER_EXTERN
|
# define CLUTTER_AVAILABLE_IN_1_24 _CLUTTER_EXTERN
|
||||||
#endif
|
#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__ */
|
#endif /* __CLUTTER_MACROS_H__ */
|
||||||
|
@ -254,6 +254,16 @@ G_BEGIN_DECLS
|
|||||||
*/
|
*/
|
||||||
#define CLUTTER_VERSION_1_24 (G_ENCODE_VERSION (1, 24))
|
#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,
|
/* evaluates to the current stable version; for development cycles,
|
||||||
* this means the next stable target
|
* this means the next stable target
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user