vcpkg/ports/openal-soft/fix-mingw-build.patch
Todor Prokopov fe19c5e411
Mingw port fixes (#12103)
* [openal-soft] MinGW build fixes

* [glew] MinGW build fixes

* [protobuf] MinGW build fixes

* [protobuf] Update to 3.12.3

* [protobuf] Preserve existing cross-compilation behavior (e.g. android)

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2020-07-30 22:37:02 -07:00

15 lines
323 B
Diff

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"