aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-22 09:45:15 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-22 11:36:37 +0100
commitd5f1e727a8896eec237acbbe4023685eb6b74881 (patch)
tree603a8610e474ae148a4ef2fb2a30d64e60367518 /src/net.h
parent39fae6cfddb78d2aefa81a48472f885253cc42f1 (diff)
downloadbitcoin-d5f1e727a8896eec237acbbe4023685eb6b74881.tar.xz
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 MSVC's inttypes.h defines prefixes such as "I64X". So don't include inttypes.h and define our own for compatibility. (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)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 8995f70da4..da590f89e1 100644
--- a/src/net.h
+++ b/src/net.h
@@ -18,7 +18,6 @@
#include "util.h"
#include <deque>
-#include <inttypes.h>
#include <stdint.h>
#ifndef WIN32