mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-14 12:17:19 +01:00
tools: minor win fix
This commit is contained in:
parent
dbc49549a0
commit
7614a4d684
@ -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>
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
@ -56,8 +55,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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user