[cogl/cogl-1.18] macros: Add 1.18 deprecation macros



commit 8f19d0181579dfe196b249d750180bbe2a3b2cbe
Author: Robert Bragg <robert linux intel com>
Date:   Wed Jan 1 19:25:04 2014 +0000

    macros: Add 1.18 deprecation macros

 cogl/cogl-macros.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-macros.h b/cogl/cogl-macros.h
index a30cb90..c112edf 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__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]