From 1f06d767befb72a8860f2c0d209e1f28e4a5058e Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 20 Mar 2007 19:09:55 +0000 Subject: [PATCH] Fix MSVC compilation with NT4 ddk. svn path=/trunk/; revision=26146 --- .../drivers/usb/nt4compat/usbdriver/usbdriver.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h b/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h index 29c6d6b144b..4d3f15172cc 100644 --- a/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h +++ b/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h @@ -17,6 +17,20 @@ #include #include + +// NT4 DDK-compatibility +#ifndef RTL_CONSTANT_STRING +# define RTL_CONSTANT_STRING(s) { sizeof( s ) - sizeof( (s)[0] ), sizeof( s ), s } +#endif + +#ifndef OBJ_KERNEL_HANDLE +# define OBJ_KERNEL_HANDLE 0x00000200L +#endif + +#ifndef FILE_DEVICE_SECURE_OPEN +# define FILE_DEVICE_SECURE_OPEN 0x00000100 +#endif + #include "debug.h" #include "usb.h" #include "hcd.h"