diff --git a/cogl/cogl-macros.h b/cogl/cogl-macros.h index a30cb9044..c112edf81 100644 --- a/cogl/cogl-macros.h +++ b/cogl/cogl-macros.h @@ -250,4 +250,18 @@ # define COGL_AVAILABLE_IN_1_16 #endif +#if COGL_VERSION_MIN_REQUIRED >= COGL_VERSION_1_18 +# define COGL_DEPRECATED_IN_1_18 COGL_DEPRECATED +# define COGL_DEPRECATED_IN_1_18_FOR(f) COGL_DEPRECATED_FOR(f) +#else +# define COGL_DEPRECATED_IN_1_18 +# define COGL_DEPRECATED_IN_1_18_FOR(f) +#endif + +#if COGL_VERSION_MAX_ALLOWED < COGL_VERSION_1_18 +# define COGL_AVAILABLE_IN_1_18 COGL_UNAVAILABLE(1, 18) +#else +# define COGL_AVAILABLE_IN_1_18 +#endif + #endif /* __COGL_MACROS_H__ */