cross platform usleep()

This commit is contained in:
Dimitri Stolnikov 2015-12-11 18:45:23 +01:00
parent 6a2d224311
commit ba4fd96622
1 changed files with 8 additions and 0 deletions

View File

@ -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>
/*