diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-07-18 02:01:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-07-18 02:01:32 +0000 |
commit | 54e645c6d6adda4be7910886753a7c2a5244a811 (patch) | |
tree | 7a6088cd56f6205cb3727b09ff15b93deb328c12 | |
parent | 4e72d6b4dcc43a4a2509e184253dc587baec36cc (diff) | |
download | tor-54e645c6d6adda4be7910886753a7c2a5244a811.tar.gz tor-54e645c6d6adda4be7910886753a7c2a5244a811.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
-rw-r--r-- | trunk/src/common/torint.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trunk/src/common/torint.h b/trunk/src/common/torint.h index 8202baa597..b69af3eeae 100644 --- a/trunk/src/common/torint.h +++ b/trunk/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) |