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:
@@ -25,7 +25,7 @@
|
||||
#include "input/Ptr.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
struct AudioFormat;
|
||||
struct Tag;
|
||||
|
@@ -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,
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -25,8 +25,7 @@
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class DecoderClient;
|
||||
class InputStream;
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "input/Offset.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class TagHandler;
|
||||
class DecoderClient;
|
||||
|
@@ -24,7 +24,7 @@ extern "C" {
|
||||
#include "libavformat/avio.h"
|
||||
}
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class DecoderClient;
|
||||
class InputStream;
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "OpusHead.hxx"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
struct OpusHead {
|
||||
char signature[8];
|
||||
|
@@ -23,8 +23,8 @@
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
class OpusReader {
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include "util/NumberParser.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
gcc_pure
|
||||
static TagType
|
||||
|
Reference in New Issue
Block a user