[libgovirt] Add fallback for G_DEPRECATED_FOR in older glib
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] Add fallback for G_DEPRECATED_FOR in older glib
- Date: Thu, 22 Jan 2015 15:54:39 +0000 (UTC)
commit 2ca872bd88efcfa7a55fedb6116f6bbec618d896
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Jan 20 10:42:46 2015 +0100
Add fallback for G_DEPRECATED_FOR in older glib
It was only introduced in glib 2.32
govirt/ovirt-vm.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/govirt/ovirt-vm.h b/govirt/ovirt-vm.h
index 5a3479e..10910e3 100644
--- a/govirt/ovirt-vm.h
+++ b/govirt/ovirt-vm.h
@@ -30,6 +30,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_VM (ovirt_vm_get_type ())
#define OVIRT_VM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OVIRT_TYPE_VM, OvirtVm))
#define OVIRT_VM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OVIRT_TYPE_VM, OvirtVmClass))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]