diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-19 23:42:26 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-03-01 12:59:05 +0100 |
commit | c006de51f6383e5701f9803e9b2f5cda48fabfff (patch) | |
tree | b1b7154e908c59e1779b752bd3037f5a06557223 /vdservice | |
parent | ff0a9e72b353c03c442b154f20664190ef837cde (diff) |
mingw: don't redefine CTL_CODE if it's already defined
Diffstat (limited to 'vdservice')
-rw-r--r-- | 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
|