]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add %lld compat defines.
authorMike Perry <mikeperry-git@fscked.org>
Mon, 15 Feb 2010 00:26:41 +0000 (16:26 -0800)
committerMike Perry <mikeperry-git@fscked.org>
Tue, 23 Feb 2010 00:52:10 +0000 (16:52 -0800)
src/common/compat.h

index 554ae8919f6d304519166dece9d1dd07d79510c1..60fb1cb652611003873c788d54f900ea0fb4f469 100644 (file)
@@ -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