vcpkg/ports/openal-soft/fix-mingw-build.patch

15 lines
323 B
Diff
Raw Normal View History

diff --git a/common/alstring.h b/common/alstring.h
index 194e54a1..5a5f87ed 100644
--- a/common/alstring.h
+++ b/common/alstring.h
@@ -4,6 +4,9 @@
#include <cstddef>
#include <string>
+// This fixes MinGW link errors. It defines strcasecmp and strncasecmp in string.h.
+#include <string.h>
+
#include "almalloc.h"