From ae367880bfbd4ad418ebccc7b1e812ecc16c190a Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Wed, 15 Feb 2017 15:03:54 -0700 Subject: [PATCH] _USE_MATH_DEFINES only on Windows --- host/hackrf-tools/src/hackrf_sweep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index 97f66408..c9199e77 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -20,7 +20,6 @@ * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ -#define _USE_MATH_DEFINES #include @@ -35,7 +34,6 @@ #include #include #include -#include #include #define _FILE_OFFSET_BITS 64 @@ -47,6 +45,7 @@ typedef int bool; #endif #ifdef _WIN32 +#define _USE_MATH_DEFINES #include #ifdef _MSC_VER @@ -84,6 +83,7 @@ int gettimeofday(struct timeval *tv, void* ignored) { #endif #include +#include #define FD_BUFFER_SIZE (8*1024)