From cee597bd01ef999d5b8b86b639260282aa594467 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 12 Mar 2021 12:25:58 -0500 Subject: 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. --- yjit_iface.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'yjit_iface.h') 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__; \ }; \ -- cgit v1.2.3