aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_adsb.c
diff options
context:
space:
mode:
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