mingw: don't redefine CTL_CODE if it's already defined

This commit is contained in:
Christophe Fergeau 2012-02-19 23:42:26 +01:00
parent ff0a9e72b3
commit c006de51f6

View File

@ -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