cross platform usleep()
parent
6a2d224311
commit
ba4fd96622
|
@ -27,6 +27,14 @@
|
|||
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
//cross platform usleep()
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#define usleep(t) Sleep((t)/1000)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <libusb.h>
|
||||
|
||||
/*
|
||||
|
|
Reference in New Issue