File tree Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Expand file tree Collapse file tree 9 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 11
11
#include " util.h"
12
12
13
13
#include < algorithm>
14
- #include < inttypes.h>
15
14
#include < map>
16
15
17
16
#include < boost/algorithm/string/classification.hpp>
Original file line number Diff line number Diff line change 10
10
#include " protocol.h"
11
11
#include " util.h"
12
12
13
- #include < inttypes.h>
14
13
#include < stdint.h>
15
14
16
15
#ifndef WIN32
Original file line number Diff line number Diff line change 24
24
#include " walletdb.h"
25
25
#endif
26
26
27
- #include < inttypes.h>
28
27
#include < stdint.h>
29
28
30
29
#ifndef WIN32
Original file line number Diff line number Diff line change 17
17
#include " ui_interface.h"
18
18
#include " util.h"
19
19
20
- #include < inttypes.h>
21
20
#include < sstream>
22
21
23
22
#include < boost/algorithm/string/replace.hpp>
Original file line number Diff line number Diff line change 18
18
#include " util.h"
19
19
20
20
#include < deque>
21
- #include < inttypes.h>
22
21
#include < stdint.h>
23
22
24
23
#ifndef WIN32
Original file line number Diff line number Diff line change 15
15
#include " wallet.h" // for getinfo
16
16
#endif
17
17
18
- #include < inttypes.h>
19
-
20
18
#include < boost/foreach.hpp>
21
19
#include " json/json_spirit_value.h"
22
20
Original file line number Diff line number Diff line change 16
16
17
17
#include < cstdio>
18
18
#include < exception>
19
- #include < inttypes.h>
20
19
#include < map>
21
20
#include < stdarg.h>
22
21
#include < stdint.h>
@@ -45,13 +44,25 @@ static const int64_t CENT = 1000000;
45
44
#define UEND (a ) ((unsigned char *)&((&(a))[1 ]))
46
45
#define ARRAYLEN (array ) (sizeof (array)/sizeof ((array)[0 ]))
47
46
48
- /* Format characters for (s)size_t and ptrdiff_t (C99 standard) */
49
- #define PRIszx " zx"
50
- #define PRIszu " zu"
51
- #define PRIszd " zd"
52
- #define PRIpdx " tx"
53
- #define PRIpdu " tu"
54
- #define PRIpdd " td"
47
+ /* Format characters for (s)size_t, ptrdiff_t, uint64_t.
48
+ *
49
+ * As the tinyformat-based formatting system is type-safe, no special format
50
+ * characters are really needed to specify sizes. Tinyformat can support
51
+ * (ignores) the C99 prefixes such as "ll" but chokes on MSVC's inttypes
52
+ * defines prefixes such as "I64X". So don't include inttypes.h and define our
53
+ * own for compatibility.
54
+ * If you get a warning here about a redefine of PRI?64, make sure that
55
+ * inttypes.h is not included.
56
+ */
57
+ #define PRIszx " x"
58
+ #define PRIszu " u"
59
+ #define PRIszd " d"
60
+ #define PRIpdx " x"
61
+ #define PRIpdu " u"
62
+ #define PRIpdd " d"
63
+ #define PRIx64 " x"
64
+ #define PRIu64 " u"
65
+ #define PRId64 " d"
55
66
56
67
// This is needed because the foreach macro can't get over the comma in pair<t1, t2>
57
68
#define PAIRTYPE (t1, t2 ) std::pair<t1, t2>
Original file line number Diff line number Diff line change 9
9
#include " coincontrol.h"
10
10
#include " net.h"
11
11
12
- #include < inttypes.h>
13
-
14
12
#include < boost/algorithm/string/replace.hpp>
15
13
#include < openssl/rand.h>
16
14
Original file line number Diff line number Diff line change 11
11
#include " sync.h"
12
12
#include " wallet.h"
13
13
14
- #include < inttypes.h>
15
-
16
14
#include < boost/filesystem.hpp>
17
15
#include < boost/foreach.hpp>
18
16
You can’t perform that action at this time.
0 commit comments