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:
parent
edc4989d9c
commit
5cd400f578
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user