Annotation of pkgsrc/lang/ruby34/patches/patch-include_ruby_internal_static__assert.h, revision 1.1
1.1 ! taca 1: $NetBSD: patch-include_ruby_internal_static__assert.h,v 1.1 2024/01/21 08:22:03 taca Exp $
! 2:
! 3: Add the way to stop using static_assert.
! 4:
! 5: --- include/ruby/internal/static_assert.h.orig 2022-04-12 11:11:15.000000000 +0000
! 6: +++ include/ruby/internal/static_assert.h
! 7: @@ -50,7 +50,7 @@
! 8: #elif defined(__STDC_VERSION__) && RBIMPL_COMPILER_SINCE(GCC, 4, 6, 0)
! 9: # define RBIMPL_STATIC_ASSERT0 __extension__ _Static_assert
! 10:
! 11: -#elif defined(static_assert)
! 12: +#elif defined(static_assert) && !defined(RB_AVOID_STATIC_ASSERT)
! 13: # /* Take <assert.h> definition */
! 14: # define RBIMPL_STATIC_ASSERT0 static_assert
! 15: #endif
CVSweb <webmaster@jp.NetBSD.org>