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: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-12 16:07:28 -07:00
parent edc4989d9c
commit 5cd400f578
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 2 additions and 4 deletions

View File

@ -44,8 +44,7 @@
#include "Log.hxx"
#include <cassert>
#include <inttypes.h> /* for PRIu64 */
#include <cinttypes> /* for PRIu64 */
gcc_pure
static bool

View File

@ -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