git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b2689e8
)
Silence compiler warnings on Windows related to MinGWs inttypes.h
author
CryptoManiac
<balthazar@yandex.ru>
Mon, 19 Oct 2015 22:23:53 +0000 (15:23 -0700)
committer
CryptoManiac
<balthazar@yandex.ru>
Mon, 19 Oct 2015 22:23:53 +0000 (15:23 -0700)
src/util.h
patch
|
blob
|
history
diff --git
a/src/util.h
b/src/util.h
index
3ef7331
..
f4b872c
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-61,6
+61,18
@@
static const int64_t CENT = 10000;
void LogStackTrace();
#endif
+#if defined(_MSC_VER) || defined(__MSVCRT__)
+ /* Silence compiler warnings on Windows
+ related to MinGWs inttypes.h */
+ #undef PRIu64
+ #undef PRId64
+ #undef PRIx64
+
+ #define PRIu64 "I64u"
+ #define PRId64 "I64d"
+ #define PRIx64 "I64x"
+
+#endif
/* Format characters for (s)size_t and ptrdiff_t */
#if defined(_MSC_VER) || defined(__MSVCRT__)