diff --git a/vm_core.h b/vm_core.h index 2582d52a4c..13de0c5864 100644 --- a/vm_core.h +++ b/vm_core.h @@ -1570,10 +1570,15 @@ VALUE rb_catch_protect(VALUE t, rb_block_call_func *func, VALUE data, enum ruby_ /* for thread */ #if RUBY_VM_THREAD_MODEL == 2 + +RUBY_SYMBOL_EXPORT_BEGIN + extern rb_thread_t *ruby_current_thread; extern rb_vm_t *ruby_current_vm; extern rb_event_flag_t ruby_vm_event_flags; +RUBY_SYMBOL_EXPORT_END + #define GET_VM() ruby_current_vm #define GET_THREAD() ruby_current_thread diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 33720cfb21..6d0532b29a 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -12,8 +12,12 @@ #ifndef RUBY_INSNHELPER_H #define RUBY_INSNHELPER_H +RUBY_SYMBOL_EXPORT_BEGIN + extern VALUE ruby_vm_const_missing_count; +RUBY_SYMBOL_EXPORT_END + #if VM_COLLECT_USAGE_DETAILS #define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn) #define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))