From 5cd400f57864587fc4cf959087e987c8bd4cd767 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 12 Mar 2020 16:07:28 -0700 Subject: [PATCH] replace inttypes.h with cinttypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The former has been deprecated by C++14. They are also the same. From the standard: The contents and meaning of the headerare the same as the C standard library header, with the following changes: -The headerincludes the headerinstead of,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: Rosen Penev --- src/command/FileCommands.cxx | 3 +-- src/command/StorageCommands.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 61f1f4e0d..493b794d0 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -44,8 +44,7 @@ #include "Log.hxx" #include - -#include /* for PRIu64 */ +#include /* for PRIu64 */ gcc_pure static bool diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx index ff54168c3..5cce791c7 100644 --- a/src/command/StorageCommands.cxx +++ b/src/command/StorageCommands.cxx @@ -37,10 +37,9 @@ #include "TimePrint.hxx" #include "IdleFlags.hxx" +#include /* for PRIu64 */ #include -#include /* for PRIu64 */ - gcc_pure static bool skip_path(const char *name_utf8) noexcept