aboutsummaryrefslogtreecommitdiff
path: root/src/common/torint.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-18 02:01:32 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-18 02:01:32 +0000
commit77c28d112bf8287ec1d1e029af50eb877c2b0f59 (patch)
tree05de5dce815c69409ceb4a6c837464b05c88a6ba /src/common/torint.h
parent388ac4126a1fbd95dec063eec2740bb7ebf1cfa3 (diff)
downloadtor-77c28d112bf8287ec1d1e029af50eb877c2b0f59.tar.gz
tor-77c28d112bf8287ec1d1e029af50eb877c2b0f59.zip
Hm. We probably should define INT64_MAX if we really want it. (Especially since we only want it on one platform, where, coincidentally, it is not defined.)
svn:r6784
Diffstat (limited to 'src/common/torint.h')
-rw-r--r--src/common/torint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h
index 8202baa597..b69af3eeae 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -155,6 +155,9 @@ typedef unsigned long long uint64_t;
#ifndef UINT64_MAX
#define UINT64_MAX 0xffffffffffffffffull
#endif
+#ifndef INT64_MAX
+#define INT64_MAX 0x7fffffffffffffffll
+#endif
#endif
#if (SIZEOF___INT64 == 8)
@@ -169,6 +172,9 @@ typedef unsigned __int64 uint64_t;
#ifndef UINT64_MAX
#define UINT64_MAX 0xffffffffffffffffui64
#endif
+#ifndef INT64_MAX
+#define INT64_MAX 0x7fffffffffffffffi64
+#endif
#endif
#if (SIZEOF_VOID_P > 4 && SIZEOF_VOID_P <= 8)