mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
[Bug #20633] Fix the condition for atomic_signal_fence
`AC_CHECK_DECLS` defines `HAVE_DECL_SYMBOL` to 1 if declared, 0 otherwise, not undefined.
This commit is contained in:
parent
c22398f96c
commit
958adb5b65
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ vm_push_frame(rb_execution_context_t *ec,
|
||||||
This is a no-op in all cases we've looked at (https://godbolt.org/z/3oxd1446K), but should guarantee it for all
|
This is a no-op in all cases we've looked at (https://godbolt.org/z/3oxd1446K), but should guarantee it for all
|
||||||
future/untested compilers/platforms. */
|
future/untested compilers/platforms. */
|
||||||
|
|
||||||
#ifdef HAVE_DECL_ATOMIC_SIGNAL_FENCE
|
#if defined HAVE_DECL_ATOMIC_SIGNAL_FENCE && HAVE_DECL_ATOMIC_SIGNAL_FENCE
|
||||||
atomic_signal_fence(memory_order_seq_cst);
|
atomic_signal_fence(memory_order_seq_cst);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue