diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-12 21:25:36 -0400 |
| commit | d6414c9ff74e3f8076a1e94d3c6074366119900e (patch) | |
| tree | b0620f1f1610b51b386964d6758b5787b6cb7d6f /node/RateLimiter.hpp | |
| parent | 5076c75b079fe02c843ca85dc20821e468b2d7b8 (diff) | |
| download | infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.tar.gz infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.zip | |
Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
Diffstat (limited to 'node/RateLimiter.hpp')
| -rw-r--r-- | node/RateLimiter.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node/RateLimiter.hpp b/node/RateLimiter.hpp index 4ee0cec7..69d47d0a 100644 --- a/node/RateLimiter.hpp +++ b/node/RateLimiter.hpp @@ -29,8 +29,15 @@ #define _ZT_RATELIMITER_HPP #include <math.h> + +#include "Constants.hpp" #include "Utils.hpp" +#ifdef __WINDOWS__ +#define fmin(a,b) (((a) <= (b)) ? (a) : (b)) +#define fmax(a,b) (((a) >= (b)) ? (a) : (b)) +#endif + namespace ZeroTier { /** |
