|
|
@ -48,7 +48,6 @@ |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _WIN32 |
|
|
|
#ifndef _WIN32 |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
@ -59,8 +58,10 @@ |
|
|
|
#include "getopt/getopt.h" |
|
|
|
#include "getopt/getopt.h" |
|
|
|
#define usleep(x) Sleep(x/1000) |
|
|
|
#define usleep(x) Sleep(x/1000) |
|
|
|
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) |
|
|
|
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) |
|
|
|
|
|
|
|
#define _USE_MATH_DEFINES |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <libusb.h> |
|
|
|
#include <libusb.h> |
|
|
|
|
|
|
|
|
|
|
|