Преглед изворни кода

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