Skip to content

Commit 7472fff

Browse files
kimurawnobu
authored andcommitted
[Bug #20633] Fix the condition for atomic_signal_fence
`AC_CHECK_DECLS` defines `HAVE_DECL_SYMBOL` to 1 if declared, 0 otherwise, not undefined.
1 parent 84138f5 commit 7472fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_insnhelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ vm_push_frame(rb_execution_context_t *ec,
423423
This is a no-op in all cases we've looked at (https://godbolt.org/z/3oxd1446K), but should guarantee it for all
424424
future/untested compilers/platforms. */
425425

426-
#ifdef HAVE_DECL_ATOMIC_SIGNAL_FENCE
426+
#if defined HAVE_DECL_ATOMIC_SIGNAL_FENCE && HAVE_DECL_ATOMIC_SIGNAL_FENCE
427427
atomic_signal_fence(memory_order_seq_cst);
428428
#endif
429429

0 commit comments

Comments
 (0)