File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,12 @@ uint32_t rb_abi_guest_rb_abi_value_data_ptr(rb_abi_guest_rb_abi_value_t self) {
310310 return (uint32_t )DATA_PTR (obj );
311311}
312312
313- _Static_assert (RUBY_API_VERSION_MAJOR == 3 , "unsupported Ruby version" );
314- #if RUBY_API_VERSION_MINOR == 2
313+ #if (RUBY_API_VERSION_MAJOR == 3 ) && (RUBY_API_VERSION_MINOR == 2 )
315314void rb_vm_bugreport (const void * );
316315
317316void rb_abi_guest_rb_vm_bugreport (void ) { rb_vm_bugreport (NULL ); }
318- #elif RUBY_API_VERSION_MINOR >= 3
317+ #elif ((RUBY_API_VERSION_MAJOR == 3 ) && RUBY_API_VERSION_MINOR >= 3 ) || \
318+ (RUBY_API_VERSION_MAJOR >= 4 )
319319bool rb_vm_bugreport (const void * , FILE * );
320320
321321void rb_abi_guest_rb_vm_bugreport (void ) { rb_vm_bugreport (NULL , stderr ); }
You can’t perform that action at this time.
0 commit comments