Fix alloca undefined with MSVC

Conditionally includes malloc.h when compiling with
MSVC so that alloca is defined.
This commit is contained in:
Dan Yeaw 2023-09-30 13:30:51 -04:00
parent 459d19ef15
commit 27cdee5e4c

View file

@ -43,6 +43,10 @@
#include <stdio.h>
#include <string.h>
#ifdef _MSC_VER
#include <malloc.h>
#endif
#if HAVE_FT_COLR_V1
#include <ft2build.h>