aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-09 19:42:40 +0100
committerFilip Gawin <[email protected]>2019-01-09 19:42:40 +0100
commit4169c6f37db4fa1cc8e2d052b377af479763a930 (patch)
treeaedd04c62d0edb41fe351d0fa4c94e87d00d71f2 /Alc
parent8f35f464a1b3ae1b8772a4645941a1fb2fec006e (diff)
Use c++ headers
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/alsa.cpp4
-rw-r--r--Alc/backends/base.cpp2
-rw-r--r--Alc/backends/jack.cpp4
-rw-r--r--Alc/backends/null.cpp2
-rw-r--r--Alc/backends/oss.cpp10
-rw-r--r--Alc/backends/portaudio.cpp6
-rw-r--r--Alc/backends/pulseaudio.cpp2
-rw-r--r--Alc/backends/wave.cpp6
-rw-r--r--Alc/effects/autowah.cpp4
-rw-r--r--Alc/effects/chorus.cpp2
-rw-r--r--Alc/effects/compressor.cpp2
-rw-r--r--Alc/effects/dedicated.cpp2
-rw-r--r--Alc/effects/distortion.cpp4
-rw-r--r--Alc/effects/echo.cpp4
-rw-r--r--Alc/effects/equalizer.cpp4
-rw-r--r--Alc/effects/modulator.cpp4
-rw-r--r--Alc/effects/null.cpp2
-rw-r--r--Alc/effects/reverb.cpp6
-rw-r--r--Alc/filters/nfc.cpp2
-rw-r--r--Alc/helpers.cpp12
-rw-r--r--Alc/mixer/mixer_c.cpp2
-rw-r--r--Alc/mixvoice.cpp10
-rw-r--r--Alc/panning.cpp10
-rw-r--r--Alc/ringbuffer.cpp6
24 files changed, 56 insertions, 56 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index 5fe8ef96..5472c86f 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -22,8 +22,8 @@
#include "backends/alsa.h"
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <memory.h>
#include <atomic>
diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp
index e3753426..39aa2c45 100644
--- a/Alc/backends/base.cpp
+++ b/Alc/backends/base.cpp
@@ -1,7 +1,7 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <thread>
diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp
index 78de2699..a556a190 100644
--- a/Alc/backends/jack.cpp
+++ b/Alc/backends/jack.cpp
@@ -22,8 +22,8 @@
#include "backends/jack.h"
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <memory.h>
#include <thread>
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp
index cba204f6..38ac0154 100644
--- a/Alc/backends/null.cpp
+++ b/Alc/backends/null.cpp
@@ -22,7 +22,7 @@
#include "backends/null.h"
-#include <stdlib.h>
+#include <cstdlib>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
diff --git a/Alc/backends/oss.cpp b/Alc/backends/oss.cpp
index 05394f34..3634cce9 100644
--- a/Alc/backends/oss.cpp
+++ b/Alc/backends/oss.cpp
@@ -27,14 +27,14 @@
#include <sys/time.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <memory.h>
#include <unistd.h>
-#include <errno.h>
+#include <cerrno>
#include <poll.h>
-#include <math.h>
+#include <cmath>
#include <atomic>
#include <thread>
diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp
index 074508b2..74c644f5 100644
--- a/Alc/backends/portaudio.cpp
+++ b/Alc/backends/portaudio.cpp
@@ -22,9 +22,9 @@
#include "backends/portaudio.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include "alMain.h"
#include "alu.h"
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index b717d67a..df506304 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -23,7 +23,7 @@
#include "backends/pulseaudio.h"
-#include <string.h>
+#include <cstring>
#include <array>
#include <string>
diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp
index 42b67a19..aa1aab1f 100644
--- a/Alc/backends/wave.cpp
+++ b/Alc/backends/wave.cpp
@@ -22,10 +22,10 @@
#include "backends/wave.h"
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <memory.h>
-#include <errno.h>
+#include <cerrno>
#include <chrono>
#include <thread>
diff --git a/Alc/effects/autowah.cpp b/Alc/effects/autowah.cpp
index 7df5d49e..19e287fd 100644
--- a/Alc/effects/autowah.cpp
+++ b/Alc/effects/autowah.cpp
@@ -20,8 +20,8 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include <algorithm>
diff --git a/Alc/effects/chorus.cpp b/Alc/effects/chorus.cpp
index 990b3cc4..13a35c54 100644
--- a/Alc/effects/chorus.cpp
+++ b/Alc/effects/chorus.cpp
@@ -20,7 +20,7 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <cmath>
#include <algorithm>
diff --git a/Alc/effects/compressor.cpp b/Alc/effects/compressor.cpp
index 1b840c44..c1bb0ba1 100644
--- a/Alc/effects/compressor.cpp
+++ b/Alc/effects/compressor.cpp
@@ -20,7 +20,7 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "alMain.h"
#include "alcontext.h"
diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp
index f9faa63d..2571d510 100644
--- a/Alc/effects/dedicated.cpp
+++ b/Alc/effects/dedicated.cpp
@@ -20,7 +20,7 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <cmath>
#include <algorithm>
diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp
index 1b9c66fa..95569cda 100644
--- a/Alc/effects/distortion.cpp
+++ b/Alc/effects/distortion.cpp
@@ -20,8 +20,8 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include <cmath>
diff --git a/Alc/effects/echo.cpp b/Alc/effects/echo.cpp
index 697d2e88..cadd62f2 100644
--- a/Alc/effects/echo.cpp
+++ b/Alc/effects/echo.cpp
@@ -20,8 +20,8 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include <algorithm>
diff --git a/Alc/effects/equalizer.cpp b/Alc/effects/equalizer.cpp
index defe1485..5c531079 100644
--- a/Alc/effects/equalizer.cpp
+++ b/Alc/effects/equalizer.cpp
@@ -20,8 +20,8 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include <algorithm>
#include <functional>
diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp
index 9549740e..4b7adaba 100644
--- a/Alc/effects/modulator.cpp
+++ b/Alc/effects/modulator.cpp
@@ -20,8 +20,8 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
+#include <cmath>
+#include <cstdlib>
#include <cmath>
#include <algorithm>
diff --git a/Alc/effects/null.cpp b/Alc/effects/null.cpp
index fa35b3c4..9cb73e72 100644
--- a/Alc/effects/null.cpp
+++ b/Alc/effects/null.cpp
@@ -1,6 +1,6 @@
#include "config.h"
-#include <stdlib.h>
+#include <cstdlib>
#include "AL/al.h"
#include "AL/alc.h"
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp
index a63cc4c3..8ce93339 100644
--- a/Alc/effects/reverb.cpp
+++ b/Alc/effects/reverb.cpp
@@ -20,9 +20,9 @@
#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cmath>
#include <cmath>
#include <algorithm>
diff --git a/Alc/filters/nfc.cpp b/Alc/filters/nfc.cpp
index fd98eef0..47af60bd 100644
--- a/Alc/filters/nfc.cpp
+++ b/Alc/filters/nfc.cpp
@@ -7,7 +7,7 @@
#include "alMain.h"
-#include <string.h>
+#include <cstring>
/* Near-field control filters are the basis for handling the near-field effect.
diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp
index 88c222bf..598555ab 100644
--- a/Alc/helpers.cpp
+++ b/Alc/helpers.cpp
@@ -28,11 +28,11 @@
#include "config.h"
-#include <stdlib.h>
-#include <time.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <ctype.h>
+#include <cstdlib>
+#include <ctime>
+#include <cerrno>
+#include <cstdarg>
+#include <cctype>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
@@ -93,7 +93,7 @@ DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x
#include <sys/sysconf.h>
#endif
#ifdef HAVE_FLOAT_H
-#include <float.h>
+#include <cfloat>
#endif
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
diff --git a/Alc/mixer/mixer_c.cpp b/Alc/mixer/mixer_c.cpp
index 1b16b733..38bb7b64 100644
--- a/Alc/mixer/mixer_c.cpp
+++ b/Alc/mixer/mixer_c.cpp
@@ -1,6 +1,6 @@
#include "config.h"
-#include <assert.h>
+#include <cassert>
#include <limits>
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp
index e52b330d..e0c446a2 100644
--- a/Alc/mixvoice.cpp
+++ b/Alc/mixvoice.cpp
@@ -20,11 +20,11 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
+#include <cmath>
+#include <cstdlib>
+#include <cstring>
+#include <cctype>
+#include <cassert>
#include <numeric>
#include <algorithm>
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index 99a0534f..9c92a166 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -20,11 +20,11 @@
#include "config.h"
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <assert.h>
+#include <cmath>
+#include <cstdlib>
+#include <cstring>
+#include <cctype>
+#include <cassert>
#include <cmath>
#include <numeric>
diff --git a/Alc/ringbuffer.cpp b/Alc/ringbuffer.cpp
index 21884f6c..7f0aa630 100644
--- a/Alc/ringbuffer.cpp
+++ b/Alc/ringbuffer.cpp
@@ -20,9 +20,9 @@
#include "config.h"
-#include <string.h>
-#include <stdlib.h>
-#include <limits.h>
+#include <cstring>
+#include <cstdlib>
+#include <climits>
#include <algorithm>