瀏覽代碼

rtl_adsb: windows fix

Hoernchen 12 年之前
父節點
當前提交
d0534878f3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/rtl_adsb.c

+ 1 - 0
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