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
+1 -1
View File
@@ -23,7 +23,7 @@
#include "util/ReusableArray.hxx"
#include "util/Compiler.h"
#include <stdint.h>
#include <cstdint>
/**
* Manager for a temporary buffer which grows as needed. We could
+1 -2
View File
@@ -22,10 +22,9 @@
#include "util/Compiler.h"
#include <cstdint>
#include <limits>
#include <stdint.h>
enum class SampleFormat : uint8_t;
template<SampleFormat F> struct SampleTraits;
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef MPD_PCM_DITHER_HXX
#define MPD_PCM_DITHER_HXX
#include <stdint.h>
#include <cstdint>
enum class SampleFormat : uint8_t;
+1 -1
View File
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
+1 -1
View File
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
+1 -2
View File
@@ -35,8 +35,7 @@ or implied, of Sebastian Gesemann.
#include <array>
#include <cstddef>
#include <stdint.h>
#include <cstdint>
/**
* A "dsd2pcm engine" for one channel.
+1 -1
View File
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
+1 -1
View File
@@ -30,7 +30,7 @@
#include "Dop.hxx"
#endif
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
+1 -1
View File
@@ -23,7 +23,7 @@
#include "util/Compiler.h"
#include "util/ConstBuffer.hxx"
#include <stdint.h>
#include <cstdint>
/**
* Interleave planar PCM samples from #src to #dest.
+1 -1
View File
@@ -25,7 +25,7 @@
#ifndef PCM_PACK_HXX
#define PCM_PACK_HXX
#include <stdint.h>
#include <cstdint>
/**
* Converts padded 24 bit samples (4 bytes per sample) to packed 24
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef MPD_PCM_CHANNELS_HXX
#define MPD_PCM_CHANNELS_HXX
#include <stdint.h>
#include <cstdint>
class PcmBuffer;
template<typename T> struct ConstBuffer;
+1 -1
View File
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "Dsd2Pcm.hxx"
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
+1 -1
View File
@@ -22,7 +22,7 @@
#include "SampleFormat.hxx"
#include <stdint.h>
#include <cstdint>
template<typename T> struct ConstBuffer;
class PcmBuffer;
+1 -1
View File
@@ -22,7 +22,7 @@
#include "util/Compiler.h"
#include <stdint.h>
#include <cstdint>
#if defined(_WIN32)
/* on WIN32, "FLOAT" is already defined, and this triggers -Wshadow */
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef MPD_PCM_SILENCE_HXX
#define MPD_PCM_SILENCE_HXX
#include <stdint.h>
#include <cstdint>
template<typename T> struct WritableBuffer;
enum class SampleFormat : uint8_t;
+1 -2
View File
@@ -23,8 +23,7 @@
#include "SampleFormat.hxx"
#include <cstddef>
#include <stdint.h>
#include <cstdint>
/**
* This template describes the specified #SampleFormat. This is an
+1 -1
View File
@@ -28,8 +28,8 @@
#include "Dither.cxx" // including the .cxx file to get inlined templates
#include <cassert>
#include <cstdint>
#include <stdint.h>
#include <string.h>
#if GCC_OLDER_THAN(8,0)