aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_fm.c
diff options
context:
space:
mode:
authorHoernchen <la@tfc-server.de>2013-10-25 00:04:17 +0200
committerHoernchen <la@tfc-server.de>2013-10-25 00:04:17 +0200
commit7614a4d6840015faa2a163d53bfa8f6553e04f74 (patch)
tree771280f983dcc0cb4d9691ab788dbdf9bf7e5da1 /src/rtl_fm.c
parentdbc49549a0f21cbc47e0ab667b698507b647867f (diff)
tools: minor win fix
Diffstat (limited to 'src/rtl_fm.c')
-rw-r--r--src/rtl_fm.c3
1 files changed, 2 insertions, 1 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>