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:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "Compiler.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
/**
|
||||
* @see http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith64BitsDiv
|
||||
|
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "Compiler.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__)
|
||||
/* well-known little-endian */
|
||||
|
@@ -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
|
||||
|
@@ -35,8 +35,7 @@
|
||||
#include "Compiler.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
/**
|
||||
* Format the given byte sequence into a null-terminated hexadecimal
|
||||
|
@@ -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)
|
||||
|
@@ -32,8 +32,8 @@
|
||||
#define NUMBER_PARSER_HXX
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
struct StringView;
|
||||
|
@@ -23,8 +23,7 @@
|
||||
#include "Compiler.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
template<typename T> struct WritableBuffer;
|
||||
template<typename T> class DynamicFifoBuffer;
|
||||
|
@@ -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?
|
||||
|
Reference in New Issue
Block a user