瀏覽代碼

Define an int64_min when it is missing

Nick Mathewson 9 年之前
父節點
當前提交
357191a095
共有 1 個文件被更改,包括 4 次插入0 次删除
  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