aboutsummaryrefslogtreecommitdiff
path: root/src/common/torint.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-10-14 16:15:41 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-14 16:15:41 -0400
commit83c3f118db0ae3911ea72403856df9fb08b2d0e5 (patch)
tree9ca6f88f567835462314c426397923996bf8bebb /src/common/torint.h
parent95008db08d1bb5d7b608654fc1a115a42cd15252 (diff)
downloadtor-83c3f118db0ae3911ea72403856df9fb08b2d0e5.tar
tor-83c3f118db0ae3911ea72403856df9fb08b2d0e5.tar.gz
Code to parse and access network parameters.
Partial backport of 381766ce4b1145460. Partial backport of 56c6d78520a98fb64.
Diffstat (limited to 'src/common/torint.h')
-rw-r--r--src/common/torint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h
index 1f7421174..f8441859a 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -119,6 +119,10 @@ typedef unsigned int uint32_t;
#endif
#endif
+#ifndef INT32_MIN
+#define INT32_MIN (-2147483647-1)
+#endif
+
#if (SIZEOF_LONG == 4)
#ifndef HAVE_INT32_T
typedef signed long int32_t;