]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Define an int64_min when it is missing
authorNick Mathewson <nickm@torproject.org>
Fri, 19 Dec 2014 19:12:22 +0000 (14:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 19 Dec 2014 19:12:22 +0000 (14:12 -0500)
src/common/torint.h

index d0b0ac14a073546c0f630e94348a102e11a3b33c..487972372c363e4a2e50ced17a0d2eef21918a39 100644 (file)
@@ -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