diff options
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/windows_compat.c | 3 | ||||
-rw-r--r-- | libusb/os/windows_usb.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libusb/os/windows_compat.c b/libusb/os/windows_compat.c index dfab210..a7f68d2 100644 --- a/libusb/os/windows_compat.c +++ b/libusb/os/windows_compat.c @@ -65,11 +65,12 @@ * TODO: Once MinGW supports it (or for other compilation platforms) use * CancelIoEx instead of CancelIo for Vista and later platforms */ +#include <windows.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> -#include <windows.h> +#include <stdint.h> #include <pthread.h> #include <io.h> diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h index f9904ba..2463ff8 100644 --- a/libusb/os/windows_usb.h +++ b/libusb/os/windows_usb.h @@ -40,6 +40,11 @@ #define LIBUSB_DEVADDR_MAX UINT8_MAX #endif +// Missing from MSVC6 setupapi.h +#if !defined(SPDRP_ADDRESS) +#define SPDRP_ADDRESS 28 +#endif + #if defined(__CYGWIN__ ) // cygwin produces a warning unless these prototypes are defined extern int _snprintf(char *buffer, size_t count, const char *format, ...); |