X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/1cb60c1214c82ac117a7ede9e29351e902ee7c35..b95848ab36c25033e8932098b580efdf79435e03:/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c?ds=inline diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c index f40a3e6a0..cdee1c30c 100644 --- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c +++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c @@ -657,6 +657,11 @@ int hard_reboot(void) #include #endif +#ifndef USB_GET_DEVICEINFO +# define USB_GET_DEVICEINFO 0 +# error The USB_GET_DEVICEINFO ioctl() value is not defined for your system. +#endif + int open_usb_device(int vid, int pid) { int r, fd; @@ -929,8 +934,8 @@ int printf_verbose(const char *format, ...) void delay(double seconds) { - #ifdef WIN32 - Sleep(seconds * 1000.0); + #ifdef USE_WIN32 + sleep(seconds * 1000.0); #else usleep(seconds * 1000000.0); #endif @@ -946,7 +951,7 @@ void die(const char *str, ...) exit(1); } -#if defined(WIN32) +#if defined USE_WIN32 #define strcasecmp stricmp #endif