[libgovirt] Add fallback for G_DEPRECATED_FOR in older glib



commit f839360156b320c01295d0a5f86bd6bef6169f17
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Oct 8 18:34:33 2013 +0200

    Add fallback for G_DEPRECATED_FOR in older glib
    
    It was only introduced in glib 2.32

 govirt/ovirt-proxy.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/govirt/ovirt-proxy.h b/govirt/ovirt-proxy.h
index 802a2d9..567c254 100644
--- a/govirt/ovirt-proxy.h
+++ b/govirt/ovirt-proxy.h
@@ -29,6 +29,10 @@
 
 G_BEGIN_DECLS
 
+#if !GLIB_CHECK_VERSION(2,32,0)
+#define G_DEPRECATED_FOR(name) G_GNUC_DEPRECATED_FOR(name)
+#endif
+
 #define OVIRT_TYPE_PROXY ovirt_proxy_get_type()
 
 #define OVIRT_PROXY(obj) \


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