diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-19 14:12:22 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-19 14:12:22 -0500 |
commit | 357191a0955f2c65b186f76e0e7f3169b2db398f (patch) | |
tree | 3543e48776fb9542dc15965467dc737a190e7d88 | |
parent | 816e6f2eacca57fc5f9c265b9976510b81e088d2 (diff) | |
download | tor-357191a0955f2c65b186f76e0e7f3169b2db398f.tar.gz tor-357191a0955f2c65b186f76e0e7f3169b2db398f.zip |
Define an int64_min when it is missing
-rw-r--r-- | src/common/torint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index d0b0ac14a0..487972372c 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -191,6 +191,10 @@ typedef unsigned __int64 uint64_t; #endif #endif +#ifndef INT64_MIN +#define INT64_MIN ((- INT64_MAX) - 1) +#endif + #ifndef SIZE_MAX #if SIZEOF_SIZE_T == 8 #define SIZE_MAX UINT64_MAX |