Provide 1.20 version macros

This commit is contained in:
Emmanuele Bassi
2014-05-19 17:55:52 +01:00
parent 1eb6f2420b
commit d708c30765
2 changed files with 24 additions and 0 deletions

View File

@ -310,4 +310,18 @@
# define CLUTTER_AVAILABLE_IN_1_18 _CLUTTER_EXTERN
#endif
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_20
# define CLUTTER_DEPRECATED_IN_1_20 CLUTTER_DEPRECATED
# define CLUTTER_DEPRECATED_IN_1_20_FOR(f) CLUTTER_DEPRECATED_FOR(f)
#else
# define CLUTTER_DEPRECATED_IN_1_20 _CLUTTER_EXTERN
# define CLUTTER_DEPRECATED_IN_1_20_FOR(f) _CLUTTER_EXTERN
#endif
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_20
# define CLUTTER_AVAILABLE_IN_1_20 CLUTTER_UNAVAILABLE(1, 20)
#else
# define CLUTTER_AVAILABLE_IN_1_20 _CLUTTER_EXTERN
#endif
#endif /* __CLUTTER_MACROS_H__ */