aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_adsb.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_adsb.c
parent8b4d755ba1b889510fba30f627ee08736203070d (diff)
tools: allow built-in functions for newer versions of MSVC
Diffstat (limited to 'src/rtl_adsb.c')
-rw-r--r--src/rtl_adsb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtl_adsb.c b/src/rtl_adsb.c
index 7b10306..e611e78 100644
--- a/src/rtl_adsb.c
+++ b/src/rtl_adsb.c
@@ -45,8 +45,10 @@
#ifdef _WIN32
#define sleep Sleep
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5))
#endif
+#endif
#define ADSB_RATE 2000000
#define ADSB_FREQ 1090000000