summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-03-13 21:56:12 +0100
committerGitHub <noreply@github.com>2019-03-13 21:56:12 +0100
commit1558b5c4c793647d451dff2122118be01fa749a8 (patch)
tree268c8753bf0a4eb03baf2dfb349d325dee94831c /vespalib
parent9efc07f582bc4a5f3aba2aa10c48a24a508b172a (diff)
parent58145d2cd664ba765e74c58c2131745655eccd32 (diff)
Merge pull request #8783 from vespa-engine/revert-8780-toregge/remove-bad-format-string-macro-hack
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 {