replace inttypes.h with cinttypes

The former has been deprecated by C++14. They are also the same. From the standard: The contents and meaning of the header<cinttypes>are the same as the C standard library header<inttypes.h>, with the following changes: -The header<cinttypes>includes the header<cstdint>instead of<stdint.h>,and —if and only if the typeintmax_tdesignates an extended integer type (6.7.1), the following functionsignatures are added:intmax_t abs(intmax_t);imaxdiv_t div(intmax_t, intmax_t);which shall have the same semantics as the function signaturesintmax_t imaxabs(intmax_t)andimaxdiv_t imaxdiv(intmax_t, intmax_t), respectively. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent edc4989d
......@@ -44,8 +44,7 @@
#include "Log.hxx"
#include <cassert>
#include <inttypes.h> /* for PRIu64 */
#include <cinttypes> /* for PRIu64 */
gcc_pure
static bool
......
......@@ -37,10 +37,9 @@
#include "TimePrint.hxx"
#include "IdleFlags.hxx"
#include <cinttypes> /* for PRIu64 */
#include <memory>
#include <inttypes.h> /* for PRIu64 */
gcc_pure
static bool
skip_path(const char *name_utf8) noexcept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment