From: Nick Mathewson Date: Fri, 19 Dec 2014 19:12:22 +0000 (-0500) Subject: Define an int64_min when it is missing X-Git-Tag: tor-0.2.6.2-alpha~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=357191a0955f2c65b186f76e0e7f3169b2db398f;p=thirdparty%2Ftor.git Define an int64_min when it is missing --- 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