aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorArthurSonzogni <[email protected]>2020-04-10 23:23:13 +0200
committerArthurSonzogni <[email protected]>2020-04-10 23:36:19 +0200
commit7548c235bdac9972690ac6e4e0511b9fdce6cdfd (patch)
tree53ca72fbe967f9197d2609d45947af7e7492a146 /utils
parente123fa0ec349337ba4db00ebb2bbec1b7bee4cfa (diff)
Add missing <cstdarg>
OpenAL-Soft fails to compile on some GCC version: https://travis-ci.com/github/ArthurSonzogni/smk/jobs/318304162 It has regressed likely after: https://github.com/kcat/openal-soft/commit/c83609277bed4be4ef40ed306bf2c57fefa19519 va_start is defined in: - <stdarg.h> - <cstdarg> The repository is using it from: - al/error.cpp - al/filter.cpp - alc/alu.cpp - alc/helpers.cpp - common/alexcpt.cpp - utils/makemhr/loaddef.cpp - utils/openal-info.c This patch is adding its definition in the files missing it: - common/alexcpt.cpp - utils/makemhr/loaddef.cpp - utils/openal-info.c Bug: https://travis-ci.com/github/ArthurSonzogni/smk/jobs/318304162
Diffstat (limited to 'utils')
-rw-r--r--utils/makemhr/loaddef.cpp3
-rw-r--r--utils/openal-info.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/utils/makemhr/loaddef.cpp b/utils/makemhr/loaddef.cpp
index c61c6f6b..d325eda1 100644
--- a/utils/makemhr/loaddef.cpp
+++ b/utils/makemhr/loaddef.cpp
@@ -26,13 +26,14 @@
#include <algorithm>
#include <cctype>
#include <cmath>
-#include <cstring>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
+#include <cstring>
#include <iterator>
#include <limits>
#include <memory>
+#include <cstdarg>
#include <vector>
#include "alfstream.h"
diff --git a/utils/openal-info.c b/utils/openal-info.c
index cdce77e0..46e66d45 100644
--- a/utils/openal-info.c
+++ b/utils/openal-info.c
@@ -22,9 +22,10 @@
* THE SOFTWARE.
*/
+#include <stdarg.h>
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#include "AL/alc.h"
#include "AL/al.h"