diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-09-30 03:43:45 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-09-30 03:43:45 -0700 |
| commit | 2a739598b14690998b20858321c244ad7e4bb9a1 (patch) | |
| tree | bace8940d1e221da8347c61e4e5298121c9a955f /src | |
| parent | Merge pull request #1875 from hsoft/master (diff) | |
| parent | harmonize printf format characters (diff) | |
| download | discoin-2a739598b14690998b20858321c244ad7e4bb9a1.tar.xz discoin-2a739598b14690998b20858321c244ad7e4bb9a1.zip | |
Merge pull request #1891 from Diapolo/printf_format_defs
harmonize printf format characters
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util.h b/src/util.h index 745c3d786..efb76e49b 100644 --- a/src/util.h +++ b/src/util.h @@ -56,13 +56,13 @@ static const int64 CENT = 1000000; /* 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> |