diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-03-12 12:25:58 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:31 -0400 |
commit | cee597bd01ef999d5b8b86b639260282aa594467 (patch) | |
tree | 2ee9030c91e9ee1567cfd314b4cfb512500bd78a /yjit_iface.h | |
parent | fe3bd570072b35e47e03ea23e2bc42a4d8a7681d (diff) |
Include ruby/ruby.h before vm_core.h
This is how vm.c does it, and if we don't follow it in yjit
compilation units, rb_vm_t would have a conflicting size.
Diffstat (limited to 'yjit_iface.h')
-rw-r--r-- | yjit_iface.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/yjit_iface.h b/yjit_iface.h index d525337d24..88e65322eb 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -6,21 +6,10 @@ #ifndef YJIT_IFACE_H #define YJIT_IFACE_H 1 -#include "stddef.h" -#include "stdint.h" -#include "stdbool.h" -#include "internal.h" -#include "ruby/internal/attr/nodiscard.h" +#include "ruby/ruby.h" #include "vm_core.h" -#include "vm_callinfo.h" -#include "builtin.h" #include "yjit_core.h" -#ifndef rb_callcache -struct rb_callcache; -#define rb_callcache rb_callcache -#endif - #define YJIT_DECLARE_COUNTERS(...) struct rb_yjit_runtime_counters { \ int64_t __VA_ARGS__; \ }; \ |