summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2019-03-13 21:53:49 +0100
committerGitHub <noreply@github.com>2019-03-13 21:53:49 +0100
commit58145d2cd664ba765e74c58c2131745655eccd32 (patch)
tree2115fad61c2e3ebd2b2e24fa6490d8c0fae68a2e /vespalib
parent0fa91e324d9779e3681a13fe471bcba329506a8b (diff)
Revert "Remove bad format string macro hack."
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/stringfmt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/stringfmt.h b/vespalib/src/vespa/vespalib/util/stringfmt.h
index e9ec1c433bb..df23ad7c20a 100644
--- a/vespalib/src/vespa/vespalib/util/stringfmt.h
+++ b/vespalib/src/vespa/vespalib/util/stringfmt.h
@@ -3,7 +3,12 @@
#include <vespa/vespalib/stllike/string.h>
#include <cstdarg>
-#include <cinttypes>
+
+#ifndef PRId64
+ #define PRId64 "ld"
+ #define PRIu64 "lu"
+ #define PRIx64 "lx"
+#endif
namespace vespalib {