diff options
34 files changed, 85 insertions, 85 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> diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index 55f5649c..fd5795e6 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -20,8 +20,8 @@ #include "config.h" -#include <stdlib.h> -#include <math.h> +#include <cstdlib> +#include <cmath> #include <thread> #include <algorithm> diff --git a/OpenAL32/alBuffer.cpp b/OpenAL32/alBuffer.cpp index 9781ea0c..85871573 100644 --- a/OpenAL32/alBuffer.cpp +++ b/OpenAL32/alBuffer.cpp @@ -20,9 +20,9 @@ #include "config.h" -#include <stdlib.h> -#include <stdio.h> -#include <assert.h> +#include <cstdlib> +#include <cstdio> +#include <cassert> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif diff --git a/OpenAL32/alEffect.cpp b/OpenAL32/alEffect.cpp index 498c04e8..ca05bad9 100644 --- a/OpenAL32/alEffect.cpp +++ b/OpenAL32/alEffect.cpp @@ -20,9 +20,9 @@ #include "config.h" -#include <stdlib.h> -#include <math.h> -#include <float.h> +#include <cstdlib> +#include <cmath> +#include <cfloat> #include <algorithm> diff --git a/OpenAL32/alError.cpp b/OpenAL32/alError.cpp index d65b910a..a02d09c9 100644 --- a/OpenAL32/alError.cpp +++ b/OpenAL32/alError.cpp @@ -20,8 +20,8 @@ #include "config.h" -#include <signal.h> -#include <stdarg.h> +#include <csignal> +#include <cstdarg> #ifdef HAVE_WINDOWS_H #define WIN32_LEAN_AND_MEAN diff --git a/OpenAL32/alExtension.cpp b/OpenAL32/alExtension.cpp index e5d4cdf1..3cfc253e 100644 --- a/OpenAL32/alExtension.cpp +++ b/OpenAL32/alExtension.cpp @@ -20,9 +20,9 @@ #include "config.h" -#include <stdlib.h> -#include <string.h> -#include <ctype.h> +#include <cstdlib> +#include <cstring> +#include <cctype> #include "AL/al.h" #include "AL/alc.h" diff --git a/OpenAL32/alFilter.cpp b/OpenAL32/alFilter.cpp index b3aaa0ee..a7b814f6 100644 --- a/OpenAL32/alFilter.cpp +++ b/OpenAL32/alFilter.cpp @@ -20,7 +20,7 @@ #include "config.h" -#include <stdlib.h> +#include <cstdlib> #include <algorithm> diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index a04ef6b7..236ed144 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -20,9 +20,9 @@ #include "config.h" -#include <stdlib.h> -#include <limits.h> -#include <float.h> +#include <cstdlib> +#include <climits> +#include <cfloat> #include <cmath> #include <thread> diff --git a/common/almalloc.cpp b/common/almalloc.cpp index da0a1d37..7f13cfba 100644 --- a/common/almalloc.cpp +++ b/common/almalloc.cpp @@ -3,8 +3,8 @@ #include "almalloc.h" -#include <stdlib.h> -#include <string.h> +#include <cstdlib> +#include <cstring> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif diff --git a/common/threads.cpp b/common/threads.cpp index 69989ae4..45f73243 100644 --- a/common/threads.cpp +++ b/common/threads.cpp @@ -86,7 +86,7 @@ bool semaphore::try_wait() noexcept #else -#include <errno.h> +#include <cerrno> #include <pthread.h> #ifdef HAVE_PTHREAD_NP_H #include <pthread_np.h> diff --git a/utils/makehrtf.cpp b/utils/makehrtf.cpp index ce6643a4..bb42b2d1 100644 --- a/utils/makehrtf.cpp +++ b/utils/makehrtf.cpp @@ -61,15 +61,15 @@ #include "config.h" #define _UNICODE -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <stddef.h> -#include <string.h> -#include <limits.h> -#include <stdint.h> -#include <ctype.h> -#include <math.h> +#include <cstdio> +#include <cstdlib> +#include <cstdarg> +#include <cstddef> +#include <cstring> +#include <climits> +#include <cstdint> +#include <cctype> +#include <cmath> #ifdef HAVE_STRINGS_H #include <strings.h> #endif |