Mercurial > hg > bitcoin
changeset 3573:2b2caafbbf33 draft
Merge pull request #1891 from Diapolo/printf_format_defs
harmonize printf format characters
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Sun, 30 Sep 2012 03:43:45 -0700 |
parents | 5d002dc16627 (current diff) b0df8166fcac (diff) |
children | e7d314faaf73 e5daeb17ca83 |
files | |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.h +++ b/src/util.h @@ -56,13 +56,13 @@ /* Format characters for (s)size_t and ptrdiff_t */ #if defined(_MSC_VER) || defined(__MSVCRT__) - #define PRIszx "%Ix" - #define PRIszu "%Iu" - #define PRIszd "%Id" + #define PRIszx "Ix" + #define PRIszu "Iu" + #define PRIszd "Id" #else - #define PRIszx "%zx" - #define PRIszu "%zu" - #define PRIszd "%zd" + #define PRIszx "zx" + #define PRIszu "zu" + #define PRIszd "zd" #endif // This is needed because the foreach macro can't get over the comma in pair<t1, t2>