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

@@ -25,7 +25,7 @@
#include "input/Ptr.hxx"
#include "util/Compiler.h"
#include <stdint.h>
#include <cstdint>
struct AudioFormat;
struct Tag;

View File

@@ -20,7 +20,7 @@
#ifndef MPD_DECODER_COMMAND_HXX
#define MPD_DECODER_COMMAND_HXX
#include <stdint.h>
#include <cstdint>
enum class DecoderCommand : uint8_t {
NONE = 0,

View File

@@ -32,12 +32,11 @@
#include "ReplayGainMode.hxx"
#include <cassert>
#include <cstdint>
#include <exception>
#include <memory>
#include <utility>
#include <stdint.h>
/* damn you, windows.h! */
#ifdef ERROR
#undef ERROR

View File

@@ -42,7 +42,7 @@
// IWYU pragma: end_exports
#include <stdint.h>
#include <cstdint>
/**
* Throw an instance of this class to stop decoding the current song

View File

@@ -25,8 +25,7 @@
#include "util/ConstBuffer.hxx"
#include <cstddef>
#include <stdint.h>
#include <cstdint>
class DecoderClient;
class InputStream;

View File

@@ -24,7 +24,7 @@
#include "input/Offset.hxx"
#include "util/Compiler.h"
#include <stdint.h>
#include <cstdint>
class TagHandler;
class DecoderClient;

View File

@@ -24,7 +24,7 @@ extern "C" {
#include "libavformat/avio.h"
}
#include <stdint.h>
#include <cstdint>
class DecoderClient;
class InputStream;

View File

@@ -19,7 +19,7 @@
#include "OpusHead.hxx"
#include <stdint.h>
#include <cstdint>
struct OpusHead {
char signature[8];

View File

@@ -23,8 +23,8 @@
#include "util/StringView.hxx"
#include <algorithm>
#include <cstdint>
#include <stdint.h>
#include <string.h>
class OpusReader {

View File

@@ -28,7 +28,7 @@
#include "util/NumberParser.hxx"
#include "util/StringView.hxx"
#include <stdint.h>
#include <cstdint>
gcc_pure
static TagType