From 8acaf8e1872f711898e850687ccf55a196dc1312 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 20 Nov 2004 00:37:00 +0000 Subject: Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup. More docs needed svn:r2911 --- src/common/compat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/compat.h') 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, ...) -- cgit v1.2.3-54-g00ecf