Commit 127c1e833189b563b3df067b492389499817bbd1

Carlo Bramini 2022-03-23T22:53:07

[builds/windows] Fix WCE support. * builds/windows/ftsystem.c [_WIN32_WCE]: Include <malloc.h> needed by _alloca.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 34d7c2c..9820851 100644
--- a/builds/windows/ftsystem.c
+++ b/builds/windows/ftsystem.c
@@ -253,6 +253,8 @@
 
 
 #if defined( _WIN32_WCE )
+  /* malloc.h provides implementation of alloca()/_alloca() */
+  #include <malloc.h>
 
   FT_LOCAL_DEF( HANDLE )
   CreateFileA( LPCSTR                lpFileName,