[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Define an int64_min when it is missing
commit 357191a0955f2c65b186f76e0e7f3169b2db398f
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits