Patch HID bootloader host app to fix Windows compilation (thanks to Duncan McDonald).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user