diff options
author | Shravan Narayan <shravanrn@gmail.com> | 2023-04-29 15:37:23 -0400 |
---|---|---|
committer | Shravan Narayan <shravanrn@gmail.com> | 2023-05-02 14:27:21 -0400 |
commit | 5abbeaab97eb802acccf866d9c8cc021c1f7e570 (patch) | |
tree | 54380ba2ead12f36b1cf7b16aa2f68d2617fc9ef /wasm2c/examples/fac/fac.c | |
parent | 4d9a1475a744ab78e7fbc3dc60bf7038dad6119d (diff) | |
download | wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.gz wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.tar.bz2 wabt-5abbeaab97eb802acccf866d9c8cc021c1f7e570.zip |
wasm2c: Enable exceptions and simd according to command line flags
Diffstat (limited to 'wasm2c/examples/fac/fac.c')
-rw-r--r-- | wasm2c/examples/fac/fac.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wasm2c/examples/fac/fac.c b/wasm2c/examples/fac/fac.c index 970abbe1..683c5d80 100644 --- a/wasm2c/examples/fac/fac.c +++ b/wasm2c/examples/fac/fac.c @@ -4,10 +4,14 @@ #include <stdarg.h> #include <stddef.h> #include <string.h> -#if defined(_MSC_VER) +#if defined(__MINGW32__) +#include <malloc.h> +#elif defined(_MSC_VER) #include <intrin.h> #include <malloc.h> #define alloca _alloca +#elif defined(__FreeBSD__) || defined(__OpenBSD__) +#include <stdlib.h> #else #include <alloca.h> #endif |