diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2010-02-14 16:26:41 -0800 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2010-02-22 16:52:10 -0800 |
commit | 95aad7167819560b2abfb8065682ad263982f80d (patch) | |
tree | e572f8c1f0421ba577483f8ed1fee5dd5a1a8ab6 /src/common | |
parent | 8ce1cb174d9e0801488e5d924a40318b71667d2e (diff) | |
download | tor-95aad7167819560b2abfb8065682ad263982f80d.tar.gz tor-95aad7167819560b2abfb8065682ad263982f80d.zip |
Add %lld compat defines.
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 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 |