Explorar o código

Define an int64_min when it is missing

Nick Mathewson %!s(int64=9) %!d(string=hai) anos
pai
achega
357191a095
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/common/torint.h

+ 4 - 0
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