tools: allow built-in functions for newer versions of MSVC

This commit is contained in:
Hoernchen
2015-06-09 01:37:46 +02:00
parent 8b4d755ba1
commit 5c376fc79c
3 changed files with 6 additions and 4 deletions

View File

@ -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