ソースを参照

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