File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ pass_passed_block_handler(rb_execution_context_t *ec)
33
33
#endif
34
34
35
35
#include <stdio.h>
36
- #include <setjmp.h>
36
+ #if defined(__wasm__ ) && !defined(__EMSCRIPTEN__ )
37
+ # include "wasm/setjmp.h"
38
+ #else
39
+ # include <setjmp.h>
40
+ #endif
37
41
38
42
#ifdef __APPLE__
39
43
# ifdef HAVE_CRT_EXTERNS_H
Original file line number Diff line number Diff line change 28
28
#include <sys/mman.h>
29
29
#endif
30
30
31
- #include <setjmp.h>
31
+ #if defined(__wasm__ ) && !defined(__EMSCRIPTEN__ )
32
+ # include "wasm/setjmp.h"
33
+ #else
34
+ # include <setjmp.h>
35
+ #endif
32
36
#include <stdarg.h>
33
37
#include <stdio.h>
34
38
Original file line number Diff line number Diff line change 62
62
#define VM_UNREACHABLE (func ) UNREACHABLE
63
63
#endif
64
64
65
- #include <setjmp.h>
65
+ #if defined(__wasm__ ) && !defined(__EMSCRIPTEN__ )
66
+ # include "wasm/setjmp.h"
67
+ #else
68
+ # include <setjmp.h>
69
+ #endif
66
70
67
71
#include "ruby/internal/stdbool.h"
68
72
#include "ccan/list/list.h"
You can’t perform that action at this time.
0 commit comments