From d0534878f3678dae47367ee4c5eaf59ce06a9456 Mon Sep 17 00:00:00 2001 From: Hoernchen Date: Fri, 28 Dec 2012 19:33:18 +0100 Subject: [PATCH] rtl_adsb: windows fix --- src/rtl_adsb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rtl_adsb.c b/src/rtl_adsb.c index 6dbb1bf..33a8775 100644 --- a/src/rtl_adsb.c +++ b/src/rtl_adsb.c @@ -45,6 +45,7 @@ #ifdef _WIN32 #define sleep Sleep +#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) #endif #define ADSB_RATE 2000000