Enable Windows MinGW support (#1000)

Allow compilation on Windows MinGW, see build_wamr.md for more details.

Note that WASI and some other smallish details are still not supported, but
we have a starting point. See more discussion at #993
This commit is contained in:
lucianoiam
2022-02-06 06:20:38 +01:00
committed by GitHub
parent 5f8c7655a7
commit 4bdeb909df
6 changed files with 57 additions and 4 deletions

View File

@ -9,6 +9,11 @@
#endif
#if defined(_WIN32) || defined(_WIN32_)
#if defined(__MINGW32__) && !defined(_SH_DENYNO)
#define _SH_DENYNO 0x40
#endif
char *
bh_read_file_to_buffer(const char *filename, uint32 *ret_size)
{