diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.h | 2 |
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, ...) |