diff options
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -670,7 +670,7 @@ typedef struct rb_vm_struct { #endif const struct rb_callcache *global_cc_cache_table[VM_GLOBAL_CC_CACHE_TABLE_SIZE]; // vm_eval.c -#if USE_VM_CLOCK +#if defined(USE_VM_CLOCK) && USE_VM_CLOCK uint32_t clock; #endif @@ -870,7 +870,7 @@ struct rb_execution_context_struct { /* interrupt flags */ rb_atomic_t interrupt_flag; rb_atomic_t interrupt_mask; /* size should match flag */ -#if USE_VM_CLOCK +#if defined(USE_VM_CLOCK) && USE_VM_CLOCK uint32_t checked_clock; #endif @@ -1804,7 +1804,7 @@ static inline rb_execution_context_t * rb_current_execution_context(void) { #ifdef RB_THREAD_LOCAL_SPECIFIER - #if __APPLE__ + #ifdef __APPLE__ rb_execution_context_t *ec = rb_current_ec(); #else rb_execution_context_t *ec = ruby_current_ec; @@ -1891,7 +1891,7 @@ enum { static inline bool RUBY_VM_INTERRUPTED_ANY(rb_execution_context_t *ec) { -#if USE_VM_CLOCK +#if defined(USE_VM_CLOCK) && USE_VM_CLOCK uint32_t current_clock = rb_ec_vm_ptr(ec)->clock; if (current_clock != ec->checked_clock) { |