diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-08-28 19:15:18 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-08-28 19:15:18 +0200 |
commit | b036e07acc1780a3a4e825a1c26b5b3c89508a5e (patch) | |
tree | 7fcaac818a2a6c0ad4f827debe024d1dc4d02e41 | |
parent | 88ee2d1f5dcccdb6f92092292d86c5e2413cf2cf (diff) |
glib-compat: add G_GNUC_DEPRECATED_FOR0.13.17
G_GNUC_DEPRECATED_FOR was introduced in glib 2.26
-rw-r--r-- | gtk/glib-compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 */ |