Author: fireball
Date: Tue Mar 20 22:09:55 2007
New Revision: 26146
URL:
http://svn.reactos.org/svn/reactos?rev=26146&view=rev
Log:
Fix MSVC compilation with NT4 ddk.
Modified:
trunk/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h
Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbd…
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/usbdriver.h Tue Mar 20 22:09:55 2007
@@ -17,6 +17,20 @@
#include <ntddk.h>
#include <stdio.h>
+
+// 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"