summaryrefslogtreecommitdiff
path: root/src/pcm
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 17:08:53 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 19:04:39 -0700
commita2f5a63bbc1a21be672d358a107a3a206c0c5369 (patch)
tree7d2bea6fdbaa44d80db0f8dba2851c2de92d768e /src/pcm
parent2db8bcc353ce4360a6dbe4c73afcaae1c27fce43 (diff)
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>
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/Buffer.hxx2
-rw-r--r--src/pcm/Clamp.hxx3
-rw-r--r--src/pcm/Dither.hxx2
-rw-r--r--src/pcm/Dop.hxx2
-rw-r--r--src/pcm/Dsd16.hxx2
-rw-r--r--src/pcm/Dsd2Pcm.hxx3
-rw-r--r--src/pcm/Dsd32.hxx2
-rw-r--r--src/pcm/Export.hxx2
-rw-r--r--src/pcm/Interleave.hxx2
-rw-r--r--src/pcm/Pack.hxx2
-rw-r--r--src/pcm/PcmChannels.hxx2
-rw-r--r--src/pcm/PcmDsd.hxx2
-rw-r--r--src/pcm/PcmFormat.hxx2
-rw-r--r--src/pcm/SampleFormat.hxx2
-rw-r--r--src/pcm/Silence.hxx2
-rw-r--r--src/pcm/Traits.hxx3
-rw-r--r--src/pcm/Volume.cxx2
17 files changed, 17 insertions, 20 deletions
diff --git a/src/pcm/Buffer.hxx b/src/pcm/Buffer.hxx
index 6747e74fc..e6f16cf3c 100644
--- a/src/pcm/Buffer.hxx
+++ b/src/pcm/Buffer.hxx
@@ -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
diff --git a/src/pcm/Clamp.hxx b/src/pcm/Clamp.hxx
index adcce3e47..dd822cc5a 100644
--- a/src/pcm/Clamp.hxx
+++ b/src/pcm/Clamp.hxx
@@ -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;
diff --git a/src/pcm/Dither.hxx b/src/pcm/Dither.hxx
index 0d5ff6801..e02ef8fd1 100644
--- a/src/pcm/Dither.hxx
+++ b/src/pcm/Dither.hxx
@@ -20,7 +20,7 @@
#ifndef MPD_PCM_DITHER_HXX
#define MPD_PCM_DITHER_HXX
-#include <stdint.h>
+#include <cstdint>
enum class SampleFormat : uint8_t;
diff --git a/src/pcm/Dop.hxx b/src/pcm/Dop.hxx
index 57a87f803..3a776d336 100644
--- a/src/pcm/Dop.hxx
+++ b/src/pcm/Dop.hxx
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
diff --git a/src/pcm/Dsd16.hxx b/src/pcm/Dsd16.hxx
index 67c30c90e..45a91e063 100644
--- a/src/pcm/Dsd16.hxx
+++ b/src/pcm/Dsd16.hxx
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
diff --git a/src/pcm/Dsd2Pcm.hxx b/src/pcm/Dsd2Pcm.hxx
index 42a422d9b..23f79a01b 100644
--- a/src/pcm/Dsd2Pcm.hxx
+++ b/src/pcm/Dsd2Pcm.hxx
@@ -35,8 +35,7 @@ or implied, of Sebastian Gesemann.
#include <array>
#include <cstddef>
-
-#include <stdint.h>
+#include <cstdint>
/**
* A "dsd2pcm engine" for one channel.
diff --git a/src/pcm/Dsd32.hxx b/src/pcm/Dsd32.hxx
index 5cce58f88..13971ddd0 100644
--- a/src/pcm/Dsd32.hxx
+++ b/src/pcm/Dsd32.hxx
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "RestBuffer.hxx"
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
diff --git a/src/pcm/Export.hxx b/src/pcm/Export.hxx
index a39f8451f..696a8d29a 100644
--- a/src/pcm/Export.hxx
+++ b/src/pcm/Export.hxx
@@ -30,7 +30,7 @@
#include "Dop.hxx"
#endif
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
diff --git a/src/pcm/Interleave.hxx b/src/pcm/Interleave.hxx
index 4fd8de365..22d665280 100644
--- a/src/pcm/Interleave.hxx
+++ b/src/pcm/Interleave.hxx
@@ -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.
diff --git a/src/pcm/Pack.hxx b/src/pcm/Pack.hxx
index 7a2ef70c3..dd0c1dbe7 100644
--- a/src/pcm/Pack.hxx
+++ b/src/pcm/Pack.hxx
@@ -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
diff --git a/src/pcm/PcmChannels.hxx b/src/pcm/PcmChannels.hxx
index 0088e1196..8b367bb10 100644
--- a/src/pcm/PcmChannels.hxx
+++ b/src/pcm/PcmChannels.hxx
@@ -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;
diff --git a/src/pcm/PcmDsd.hxx b/src/pcm/PcmDsd.hxx
index a0823e85a..b68c0e4e6 100644
--- a/src/pcm/PcmDsd.hxx
+++ b/src/pcm/PcmDsd.hxx
@@ -23,7 +23,7 @@
#include "Buffer.hxx"
#include "Dsd2Pcm.hxx"
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
diff --git a/src/pcm/PcmFormat.hxx b/src/pcm/PcmFormat.hxx
index fb12babb6..df4c47e32 100644
--- a/src/pcm/PcmFormat.hxx
+++ b/src/pcm/PcmFormat.hxx
@@ -22,7 +22,7 @@
#include "SampleFormat.hxx"
-#include <stdint.h>
+#include <cstdint>
template<typename T> struct ConstBuffer;
class PcmBuffer;
diff --git a/src/pcm/SampleFormat.hxx b/src/pcm/SampleFormat.hxx
index 9c7f92e57..08f9fd66d 100644
--- a/src/pcm/SampleFormat.hxx
+++ b/src/pcm/SampleFormat.hxx
@@ -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 */
diff --git a/src/pcm/Silence.hxx b/src/pcm/Silence.hxx
index 7ae300c84..bfca0069c 100644
--- a/src/pcm/Silence.hxx
+++ b/src/pcm/Silence.hxx
@@ -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;
diff --git a/src/pcm/Traits.hxx b/src/pcm/Traits.hxx
index f36156714..ba41e1cfc 100644
--- a/src/pcm/Traits.hxx
+++ b/src/pcm/Traits.hxx
@@ -23,8 +23,7 @@
#include "SampleFormat.hxx"
#include <cstddef>
-
-#include <stdint.h>
+#include <cstdint>
/**
* This template describes the specified #SampleFormat. This is an
diff --git a/src/pcm/Volume.cxx b/src/pcm/Volume.cxx
index 975a4571c..d812dc332 100644
--- a/src/pcm/Volume.cxx
+++ b/src/pcm/Volume.cxx
@@ -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)