1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[wasm] eval_inter.h gc.c vm_core.h: include wasm/setjmp.h instead of sysroot header

This commit is contained in:
Yuta Saito 2022-01-15 22:18:55 +09:00
parent a4b73f1ba8
commit 23de01c7aa
Notes: git 2022-01-19 11:19:44 +09:00
3 changed files with 15 additions and 3 deletions

View file

@ -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

6
gc.c
View file

@ -28,7 +28,11 @@
#include <sys/mman.h>
#endif
#include <setjmp.h>
#if defined(__wasm__) && !defined(__EMSCRIPTEN__)
# include "wasm/setjmp.h"
#else
# include <setjmp.h>
#endif
#include <stdarg.h>
#include <stdio.h>

View file

@ -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"