summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-20 00:37:00 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-20 00:37:00 +0000
commit8acaf8e1872f711898e850687ccf55a196dc1312 (patch)
tree71991ac1c30547461a6c17fbbbbe4ef5ee6a809e /src/common/compat.h
parentaa9461f13a9a0489da7bdb169d07ac18265ca817 (diff)
downloadtor-8acaf8e1872f711898e850687ccf55a196dc1312.tar.gz
tor-8acaf8e1872f711898e850687ccf55a196dc1312.zip
Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup. More docs needed
svn:r2911
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 32dc7e1725..5b0ed36a0c 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -69,10 +69,12 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
#define U64_PRINTF_ARG(a) (a)
#define U64_SCANF_ARG(a) (a)
#define U64_FORMAT "%I64u"
+#define U64_LITERAL(n) (n ## ui64)
#else
#define U64_PRINTF_ARG(a) ((long long unsigned int)a)
#define U64_SCANF_ARG(a) ((long long unsigned int*)a)
#define U64_FORMAT "%llu"
+#define U64_LITERAL(n) (n ## llu)
#endif
int tor_snprintf(char *str, size_t size, const char *format, ...)