mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Merge pull request #1891 from Diapolo/printf_format_defs
harmonize printf format characters
This commit is contained in:
commit
2a739598b1
12
src/util.h
12
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>
|
||||
|
Loading…
Reference in New Issue
Block a user