ref: f51c3aa431c2f0f8fccd8926628b5f330292489f
parent: dc6ab59ac41a96c5bf262056ea09fa5e2f776fe6
author: Ronald Huveneers <RonaldH@users.noreply.github.com>
date: Sun Jan 23 04:34:19 EST 2022
Fix crash with nonstandard 64-bit Windows build If built with WIN32_LEAN_AND_MEAN defined on 64-bit Windows, malloc() was not declared and so the upper 32 bits of the pointer were lost. Signed-off-by: Mark Harris <mark.hsj@gmail.com> Closes https://github.com/xiph/libopusenc/pull/30
--- a/src/unicode_support.c
+++ b/src/unicode_support.c
@@ -34,6 +34,7 @@
#include <windows.h>
#include <io.h>
+#include <stdlib.h>
static wchar_t *utf8_to_utf16(const char *input)
{