aboutsummaryrefslogtreecommitdiffstats
path: root/al/filter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-10 09:04:40 -0700
committerChris Robinson <[email protected]>2020-04-10 09:04:40 -0700
commit8713bb8afbe0fe42e531ec17c5ea0bb20af64126 (patch)
tree422777c2a74eb72e73816dc4bb8ba34969691df8 /al/filter.cpp
parentae173ba8637f4ed69acb8357b6511d90cca7f010 (diff)
Add missing include
Diffstat (limited to 'al/filter.cpp')
-rw-r--r--al/filter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/al/filter.cpp b/al/filter.cpp
index 88aa3ce9..a5f60c0e 100644
--- a/al/filter.cpp
+++ b/al/filter.cpp
@@ -23,6 +23,7 @@
#include "filter.h"
#include <algorithm>
+#include <cstdarg>
#include <cstdint>
#include <cstdio>
#include <iterator>
@@ -59,7 +60,7 @@ public:
filter_exception::filter_exception(ALenum code, const char *msg, ...) : mErrorCode{code}
{
- va_list args, args2;
+ std::va_list args, args2;
va_start(args, msg);
va_copy(args2, args);
int msglen{std::vsnprintf(nullptr, 0, msg, args)};