summaryrefslogtreecommitdiff
path: root/src/template/wasm2c.includes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/template/wasm2c.includes.c')
-rw-r--r--src/template/wasm2c.includes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/template/wasm2c.includes.c b/src/template/wasm2c.includes.c
index 91e7c21d..8b61e643 100644
--- a/src/template/wasm2c.includes.c
+++ b/src/template/wasm2c.includes.c
@@ -1,2 +1,8 @@
#include <math.h>
#include <string.h>
+#if defined(_MSC_VER)
+#include <intrin.h>
+#include <malloc.h>
+#else
+#include <alloca.h>
+#endif