diff options
author | Arnstein Ressem <aressem@gmail.com> | 2019-03-13 21:53:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 21:53:49 +0100 |
commit | 58145d2cd664ba765e74c58c2131745655eccd32 (patch) | |
tree | 2115fad61c2e3ebd2b2e24fa6490d8c0fae68a2e /vespalog/src | |
parent | 0fa91e324d9779e3681a13fe471bcba329506a8b (diff) |
Revert "Remove bad format string macro hack."
Diffstat (limited to 'vespalog/src')
-rw-r--r-- | vespalog/src/vespa/log/log.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vespalog/src/vespa/log/log.h b/vespalog/src/vespa/log/log.h index ba2408240f3..4bb13f7d791 100644 --- a/vespalog/src/vespa/log/log.h +++ b/vespalog/src/vespa/log/log.h @@ -7,7 +7,6 @@ #include <new> // for placement new #include <cstdlib> // for malloc #include <cstring> // for memset -#include <cinttypes> /** * If this macro is defined, the regular LOG calls will go through the @@ -288,3 +287,9 @@ extern void log_abort(const char *message, #else #define LOG_ASSERT(expr) #endif // #ifndef NDEBUG + +#ifndef PRId64 + #define PRId64 "ld" + #define PRIu64 "lu" + #define PRIx64 "lx" +#endif |