aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rtl_fm.c3
-rw-r--r--src/rtl_power.c3
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 <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <math.h>
#ifndef _WIN32
#include <unistd.h>
@@ -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 <math.h>
#include <pthread.h>
#include <libusb.h>
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 <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <math.h>
#include <time.h>
#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 <math.h>
#include <pthread.h>
#include <libusb.h>