summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2015-12-11 18:41:44 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2015-12-11 18:41:44 +0100
commit562b31a64eb3b54903a0a7bb6faa52353b2c1d3a (patch)
treeea6a63291674619174647bb0719ffe23a3556841
parentb697821a8d779f5993e2f245b854c6444d426b7b (diff)
cross platform usleep()mci-rewrite
-rw-r--r--software/libosmosdr/src/libosmosdr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/software/libosmosdr/src/libosmosdr.c b/software/libosmosdr/src/libosmosdr.c
index f08ec40..446a36d 100644
--- a/software/libosmosdr/src/libosmosdr.c
+++ b/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>
/*