cross platform usleep()

master
Dimitri Stolnikov 7 years ago
parent 6a2d224311
commit ba4fd96622
  1. 8
      software/libosmosdr/src/libosmosdr.c

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