[tor-commits] [tor/master] Define an int64_min when it is missing

nickm at torproject.org nickm at torproject.org
Fri Dec 19 19:12:41 UTC 2014


commit 357191a0955f2c65b186f76e0e7f3169b2db398f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Dec 19 14:12:22 2014 -0500

    Define an int64_min when it is missing
---
 src/common/torint.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/common/torint.h b/src/common/torint.h
index d0b0ac1..4879723 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





More information about the tor-commits mailing list