mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-27 19:38:27 +01:00
rtl_fm/power: unbreak MinGW build
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
3969938eb6
commit
aced2dbd0e
@ -57,7 +57,9 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include "getopt/getopt.h"
|
#include "getopt/getopt.h"
|
||||||
#define usleep(x) Sleep(x/1000)
|
#define usleep(x) Sleep(x/1000)
|
||||||
|
#ifdef _MSC_VER
|
||||||
#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))
|
||||||
|
#endif
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -53,7 +53,9 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include "getopt/getopt.h"
|
#include "getopt/getopt.h"
|
||||||
#define usleep(x) Sleep(x/1000)
|
#define usleep(x) Sleep(x/1000)
|
||||||
|
#ifdef _MSC_VER
|
||||||
#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))
|
||||||
|
#endif
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user