From 7614a4d6840015faa2a163d53bfa8f6553e04f74 Mon Sep 17 00:00:00 2001 From: Hoernchen Date: Fri, 25 Oct 2013 00:04:17 +0200 Subject: [PATCH] tools: minor win fix --- src/rtl_fm.c | 3 ++- src/rtl_power.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rtl_fm.c b/src/rtl_fm.c index 1acdfde..d9c1290 100644 --- a/src/rtl_fm.c +++ b/src/rtl_fm.c @@ -48,7 +48,6 @@ #include #include #include -#include #ifndef _WIN32 #include @@ -59,8 +58,10 @@ #include "getopt/getopt.h" #define usleep(x) Sleep(x/1000) #define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) +#define _USE_MATH_DEFINES #endif +#include #include #include diff --git a/src/rtl_power.c b/src/rtl_power.c index 58da95a..f4d132c 100644 --- a/src/rtl_power.c +++ b/src/rtl_power.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #ifndef _WIN32 @@ -56,8 +55,10 @@ #include "getopt/getopt.h" #define usleep(x) Sleep(x/1000) #define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) +#define _USE_MATH_DEFINES #endif +#include #include #include