aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2015-05-11 19:44:23 +1000
committerDean Camera <dean@fourwalledcubicle.com>2015-05-11 19:44:23 +1000
commita9364a866f99334f3aee5a58480ae5bc5e7a5a02 (patch)
tree483a927550c4d649c2781cddf7a3d38da15a98ae /Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
parent9efce7263c63b5130edfe027c39715f3c9d84c5a (diff)
downloadlufa-a9364a866f99334f3aee5a58480ae5bc5e7a5a02.tar.gz
lufa-a9364a866f99334f3aee5a58480ae5bc5e7a5a02.tar.bz2
lufa-a9364a866f99334f3aee5a58480ae5bc5e7a5a02.zip
Patch HID bootloader host app to fix Windows compilation (thanks to Duncan McDonald).
Diffstat (limited to 'Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c')
-rw-r--r--Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
index 058ccc63d..cdee1c30c 100644
--- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
+++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
@@ -934,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
@@ -951,7 +951,7 @@ void die(const char *str, ...)
exit(1);
}
-#if defined(WIN32)
+#if defined USE_WIN32
#define strcasecmp stricmp
#endif