Skip to content

Commit f51c3aa

Browse files
RonaldHmark4o
authored andcommitted
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 #30
1 parent dc6ab59 commit f51c3aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unicode_support.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
#include <windows.h>
3636
#include <io.h>
37+
#include <stdlib.h>
3738

3839
static wchar_t *utf8_to_utf16(const char *input)
3940
{

0 commit comments

Comments
 (0)