aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-01-15 22:18:55 +0900
committerYuta Saito <kateinoigakukun@gmail.com>2022-01-19 11:19:06 +0900
commit23de01c7aa5d8f3651213b75295a4969a187a041 (patch)
tree98abcc58bb467b0481bfede5998ed7a80a4110fb /vm_core.h
parenta4b73f1ba88b4d126569ba5ab295c0eb5f121662 (diff)
downloadruby-23de01c7aa5d8f3651213b75295a4969a187a041.tar.gz
[wasm] eval_inter.h gc.c vm_core.h: include wasm/setjmp.h instead of sysroot header
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 11866b85e5..12f563df17 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -62,7 +62,11 @@
#define VM_UNREACHABLE(func) UNREACHABLE
#endif
-#include <setjmp.h>
+#if defined(__wasm__) && !defined(__EMSCRIPTEN__)
+# include "wasm/setjmp.h"
+#else
+# include <setjmp.h>
+#endif
#include "ruby/internal/stdbool.h"
#include "ccan/list/list.h"