replace stdint.h with cstdint

The former is deprecated by C++14. The standard says they are the same:

The header defines all types and macros the same as the C standard library
header<stdint.h>.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-12 17:08:53 -07:00
parent 2db8bcc353
commit a2f5a63bbc
85 changed files with 88 additions and 113 deletions

View File

@@ -22,7 +22,7 @@
#include "Compiler.h"
#include <stdint.h>
#include <cstdint>
/**
* @see http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith64BitsDiv

View File

@@ -32,7 +32,7 @@
#include "Compiler.h"
#include <stdint.h>
#include <cstdint>
#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__)
/* well-known little-endian */

View File

@@ -21,8 +21,7 @@
#define MPD_BYTE_REVERSE_HXX
#include <cstddef>
#include <stdint.h>
#include <cstdint>
/**
* Reverse the bytes in each 16 bit "frame". This function can be

View File

@@ -35,8 +35,7 @@
#include "Compiler.h"
#include <cstddef>
#include <stdint.h>
#include <cstdint>
/**
* Format the given byte sequence into a null-terminated hexadecimal

View File

@@ -103,7 +103,7 @@ HugeDiscard(void *p, size_t size) noexcept
/* not Linux: fall back to standard C calls */
#include <stdint.h>
#include <cstdint>
static inline WritableBuffer<void>
HugeAllocate(size_t size)

View File

@@ -32,8 +32,8 @@
#define NUMBER_PARSER_HXX
#include <cassert>
#include <cstdint>
#include <stdint.h>
#include <stdlib.h>
struct StringView;

View File

@@ -23,8 +23,7 @@
#include "Compiler.h"
#include <cstddef>
#include <stdint.h>
#include <cstdint>
template<typename T> struct WritableBuffer;
template<typename T> class DynamicFifoBuffer;

View File

@@ -32,8 +32,7 @@
#include "CharUtil.hxx"
#include <algorithm>
#include <stdint.h>
#include <cstdint>
/**
* Is this a leading byte that is followed by 1 continuation byte?