commit | 58d2dc6a4106c464aa3b346f3777a6b032411226 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Thu Jun 24 16:03:24 2021 +0100 |
committer | Primiano Tucci <primiano@google.com> | Thu Jun 24 16:03:24 2021 +0100 |
tree | bfe122e4bb457a04dc1c31dbdca8fc180b5595c9 | |
parent | f6fca142a208dbd263313f5d276c51cc0aef663d [diff] [blame] |
inttypes.h -> cinttypes In some toolchains PRIu32 and other printf formatters work only when including cinttypes. The reason seem to have to do with pre-C++ reasons and __STDC_FORMAT_MACROS. See also Notes section of https://en.cppreference.com/w/cpp/types/integer Bug: https://github.com/google/perfetto/issues/146 Change-Id: Ia2df81271e77ffff8e412e7d003c5af70774f71e
diff --git a/tools/multithreaded_alloc.cc b/tools/multithreaded_alloc.cc index 6125777..4c5e603 100644 --- a/tools/multithreaded_alloc.cc +++ b/tools/multithreaded_alloc.cc
@@ -14,12 +14,12 @@ * limitations under the License. */ -#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <atomic> +#include <cinttypes> #include <condition_variable> #include <iterator> #include <mutex>