aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_fm.c
diff options
context:
space:
mode:
authorHoernchen <la@tfc-server.de>2015-06-09 01:37:46 +0200
committerHoernchen <la@tfc-server.de>2015-06-09 01:37:46 +0200
commit5c376fc79c919c0e16a832328c92f5213f0cdd54 (patch)
treeec2bd5e3ac1f440043e856050087ebbdc4c0581b /src/rtl_fm.c
parent8b4d755ba1b889510fba30f627ee08736203070d (diff)
tools: allow built-in functions for newer versions of MSVC
Diffstat (limited to 'src/rtl_fm.c')
-rw-r--r--src/rtl_fm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index 0f7ac38..e89e42d 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -62,7 +62,7 @@
#include <io.h>
#include "getopt/getopt.h"
#define usleep(x) Sleep(x/1000)
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5))
#endif
#define _USE_MATH_DEFINES
@@ -271,7 +271,7 @@ int cic_9_tables[][10] = {
{9, -199, -362, 5303, -25505, 77489, -25505, 5303, -362, -199},
};
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
double log2(double n)
{
return log(n) / log(2.0);