summaryrefslogtreecommitdiff
path: root/src/pcm
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 16:46:28 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 19:04:38 -0700
commit2db8bcc353ce4360a6dbe4c73afcaae1c27fce43 (patch)
tree82f385cbb1ead61319bfd16380ccd44cbf2da7c4 /src/pcm
parentc846ee0d1b603e141fc536078b920caedae3bf6f (diff)
replace stddef.h with cstddef
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/AudioFormat.hxx3
-rw-r--r--src/pcm/Dsd2Pcm.hxx2
-rw-r--r--src/pcm/Mix.hxx2
-rw-r--r--src/pcm/RestBuffer.hxx3
-rw-r--r--src/pcm/Traits.hxx3
5 files changed, 6 insertions, 7 deletions
diff --git a/src/pcm/AudioFormat.hxx b/src/pcm/AudioFormat.hxx
index 710ea7e25..7d931a002 100644
--- a/src/pcm/AudioFormat.hxx
+++ b/src/pcm/AudioFormat.hxx
@@ -24,10 +24,9 @@
#include "pcm/ChannelDefs.hxx"
#include "util/Compiler.h"
+#include <cstddef>
#include <cstdint>
-#include <stddef.h>
-
template<size_t CAPACITY> class StringBuffer;
/**
diff --git a/src/pcm/Dsd2Pcm.hxx b/src/pcm/Dsd2Pcm.hxx
index afe1eaebe..42a422d9b 100644
--- a/src/pcm/Dsd2Pcm.hxx
+++ b/src/pcm/Dsd2Pcm.hxx
@@ -34,8 +34,8 @@ or implied, of Sebastian Gesemann.
#include "ChannelDefs.hxx"
#include <array>
+#include <cstddef>
-#include <stddef.h>
#include <stdint.h>
/**
diff --git a/src/pcm/Mix.hxx b/src/pcm/Mix.hxx
index 745c1e6f5..f3aea7f73 100644
--- a/src/pcm/Mix.hxx
+++ b/src/pcm/Mix.hxx
@@ -23,7 +23,7 @@
#include "SampleFormat.hxx"
#include "util/Compiler.h"
-#include <stddef.h>
+#include <cstddef>
class PcmDither;
diff --git a/src/pcm/RestBuffer.hxx b/src/pcm/RestBuffer.hxx
index 366753d90..361ed059a 100644
--- a/src/pcm/RestBuffer.hxx
+++ b/src/pcm/RestBuffer.hxx
@@ -24,8 +24,7 @@
#include <algorithm>
#include <cassert>
-
-#include <stddef.h>
+#include <cstddef>
template<typename T> struct ConstBuffer;
class PcmBuffer;
diff --git a/src/pcm/Traits.hxx b/src/pcm/Traits.hxx
index 155c895c4..f36156714 100644
--- a/src/pcm/Traits.hxx
+++ b/src/pcm/Traits.hxx
@@ -22,8 +22,9 @@
#include "SampleFormat.hxx"
+#include <cstddef>
+
#include <stdint.h>
-#include <stddef.h>
/**
* This template describes the specified #SampleFormat. This is an