diff options
Diffstat (limited to 'gtk/glib-compat.h')
-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 */ |