summaryrefslogtreecommitdiff
path: root/wasm2c
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c')
-rw-r--r--wasm2c/wasm-rt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wasm2c/wasm-rt.h b/wasm2c/wasm-rt.h
index a44e8220..dcf3e086 100644
--- a/wasm2c/wasm-rt.h
+++ b/wasm2c/wasm-rt.h
@@ -45,7 +45,11 @@ extern "C" {
#if WASM_RT_MEMCHECK_SIGNAL_HANDLER
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__)
+#if defined(__WORDSIZE) && __WORDSIZE != 64
+#warn "Signal handler is only supported on 64-bit architectures"
+#else
#define WASM_RT_MEMCHECK_SIGNAL_HANDLER_POSIX 1
+#endif
#else
#error "No signal handler implementation for OS!"
#endif