diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-15 22:18:55 +0900 |
---|---|---|
committer | Yuta Saito <kateinoigakukun@gmail.com> | 2022-01-19 11:19:06 +0900 |
commit | 23de01c7aa5d8f3651213b75295a4969a187a041 (patch) | |
tree | 98abcc58bb467b0481bfede5998ed7a80a4110fb /eval_intern.h | |
parent | a4b73f1ba88b4d126569ba5ab295c0eb5f121662 (diff) | |
download | ruby-23de01c7aa5d8f3651213b75295a4969a187a041.tar.gz |
[wasm] eval_inter.h gc.c vm_core.h: include wasm/setjmp.h instead of sysroot header
Diffstat (limited to 'eval_intern.h')
-rw-r--r-- | eval_intern.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h index 266a84601e..347453f4e8 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -33,7 +33,11 @@ pass_passed_block_handler(rb_execution_context_t *ec) #endif #include <stdio.h> -#include <setjmp.h> +#if defined(__wasm__) && !defined(__EMSCRIPTEN__) +# include "wasm/setjmp.h" +#else +# include <setjmp.h> +#endif #ifdef __APPLE__ # ifdef HAVE_CRT_EXTERNS_H |