diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-03 06:37:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-03 06:37:54 +0000 |
commit | c185825585e6f65bff7b8dca6747e922a33fab2c (patch) | |
tree | 59e44797fde9f4e83fe55b694f6a51b561ce0780 /src/common/torint.h | |
parent | f90ccf5648309152e5d10b941cd3eb6cb0dce21a (diff) | |
download | tor-c185825585e6f65bff7b8dca6747e922a33fab2c.tar.gz tor-c185825585e6f65bff7b8dca6747e922a33fab2c.zip |
Finish implementing GETINFO; make it easy to query address maps.
svn:r3732
Diffstat (limited to 'src/common/torint.h')
-rw-r--r-- | src/common/torint.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index 75e45239c8..84f6b28dfa 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -235,6 +235,16 @@ typedef uint32_t uintptr_t; #endif #endif +#ifndef TIME_MAX +#if (SIZEOF_TIME_T == 4) +#define TIME_MAX ((time_t)UINT32_MAX) +#elif (SIZEOF_TIME_T == 8) +#define TIME_MAX ((time_t)UINT64_MAX) +#else +#error "Can't define TIME_MAX" +#endif +#endif + /* Any size_t larger than this amount is likely to be an underflow. */ #define SIZE_T_CEILING (sizeof(char)<<(sizeof(size_t)*8 - 1)) |