summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Yeaw <dan@yeaw.me>2023-09-30 13:30:51 -0400
committerDan Yeaw <dan@yeaw.me>2023-09-30 13:30:51 -0400
commit27cdee5e4cf19e7959b80fe1a39e61188de1b654 (patch)
treec0c2b28d37c9e0f9315f3e7ab4c32e326c1a11a2
parent459d19ef1520d39078038ecaa840efca0194e053 (diff)
Fix alloca undefined with MSVC
Conditionally includes malloc.h when compiling with MSVC so that alloca is defined.
-rw-r--r--src/cairo-colr-glyph-render.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-colr-glyph-render.c b/src/cairo-colr-glyph-render.c
index 28254fd51..a9ad84bbf 100644
--- a/src/cairo-colr-glyph-render.c
+++ b/src/cairo-colr-glyph-render.c
@@ -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>