From: Mike Perry Date: Mon, 15 Feb 2010 00:26:41 +0000 (-0800) Subject: Add %lld compat defines. X-Git-Tag: tor-0.2.2.10-alpha~18^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95aad7167819560b2abfb8065682ad263982f80d;p=thirdparty%2Ftor.git Add %lld compat defines. --- diff --git a/src/common/compat.h b/src/common/compat.h index 554ae8919f..60fb1cb652 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -206,8 +206,10 @@ size_t strlcpy(char *dst, const char *src, size_t siz) ATTR_NONNULL((1,2)); /** The formatting string used to put a uint64_t value in a printf() or * scanf() function. See also U64_PRINTF_ARG and U64_SCANF_ARG. */ #define U64_FORMAT "%I64u" +#define I64_FORMAT "%I64d" #else #define U64_FORMAT "%llu" +#define I64_FORMAT "%lld" #endif /** Represents an mmaped file. Allocated via tor_mmap_file; freed with