summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/waffle/waffle.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h
index 77885a4..f4bb6ef 100644
--- a/include/waffle/waffle.h
+++ b/include/waffle/waffle.h
@@ -36,6 +36,20 @@
extern "C" {
#endif
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)
+# define WAFFLE_DEPRECATED __attribute__((deprecated))
+#elif defined(_MSC_VER)
+# define WAFFLE_DEPRECATED __declspec(deprecated)
+#else
+# define WAFFLE_DEPRECATED
+#endif
+
+#if WAFFLE_API_VERSION >= 0x0106
+# define WAFFLE_DEPRECATED_1_06 WAFFLE_DEPRECATED
+#else
+# define WAFFLE_DEPRECATED_1_06
+#endif
+
struct waffle_display;
struct waffle_config;
struct waffle_context;