bitcoin/bitcoin — pull request #3729 by laanwj (2014-02-22 08:53:17+00:00)
Title: Don't use PRIx64 formatting derives from inttypes.h

As the tinyformat-based formatting system (introduced in b77dfdc) is type-safe, no special format characters are needed to specify sizes.

Tinyformat can support (ignore) the C99 prefixes such as "ll" but chokes on mingw's inttypes.h prefixes such as "I64X". So don't include inttypes.h and define our own for compatibility. This also further reduces C99 dependency.

(an alternative would be to sweep the entire codebase using sed -i to get rid of the size specifiers but this has less diff impact)

Tested by strprintf numbers test: https://github.com/bitcoin/bitcoin/blob/master/src/test/util_tests.cpp#L310