[Spice-devel] [PATCH 13/20] mingw: don't redefine CTL_CODE if it's already defined
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 1 02:17:47 PST 2012
---
vdservice/pci_vdi_port.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/vdservice/pci_vdi_port.cpp b/vdservice/pci_vdi_port.cpp
index fce13bd..4deace1 100644
--- a/vdservice/pci_vdi_port.cpp
+++ b/vdservice/pci_vdi_port.cpp
@@ -24,9 +24,12 @@
#define METHOD_BUFFERED 0
#define FILE_ANY_ACCESS 0
+#ifndef CTL_CODE
+//With mingw, this is defined in winioctl.h
#define CTL_CODE(DeviceType, Function, Method, Access) ( \
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
)
+#endif
#define FIRST_AVAIL_IO_FUNC 0x800
#define RED_TUNNEL_CTL_FUNC FIRST_AVAIL_IO_FUNC
--
1.7.7.6
More information about the Spice-devel
mailing list