From b036e07acc1780a3a4e825a1c26b5b3c89508a5e Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 28 Aug 2012 19:15:18 +0200 Subject: glib-compat: add G_GNUC_DEPRECATED_FOR G_GNUC_DEPRECATED_FOR was introduced in glib 2.26 --- gtk/glib-compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk/glib-compat.h b/gtk/glib-compat.h index aa750b2..a9efda3 100644 --- a/gtk/glib-compat.h +++ b/gtk/glib-compat.h @@ -126,4 +126,13 @@ GType spice_main_context_get_type (void) G_GNUC_CONST; } G_STMT_END #endif +#ifndef G_GNUC_DEPRECATED_FOR +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) +#define G_GNUC_DEPRECATED_FOR(f) \ + __attribute__((deprecated("Use " #f " instead"))) +#else +#define G_GNUC_DEPRECATED_FOR(f) G_GNUC_DEPRECATED +#endif /* __GNUC__ */ +#endif + #endif /* GLIB_COMPAT_H */ -- cgit v1.2.3