From ad4da86669454dee86844b3e0a3ecf9177084db3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 29 Oct 2019 12:12:07 +0900 Subject: Check for nonnull attribute in configure --- internal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index c296a99b6e..5b9b9b62bc 100644 --- a/internal.h +++ b/internal.h @@ -2387,16 +2387,16 @@ struct rb_call_data { struct rb_call_cache cc; struct rb_call_info ci; }; -VALUE rb_funcallv_with_cc(struct rb_call_data*, VALUE, ID, int, const VALUE*) -#if (defined(__clang__) || GCC_VERSION_SINCE(3, 3, 0)) && defined(__OPTIMIZE__) -__attribute__((__visibility__("default"), __nonnull__(1))) +RUBY_FUNC_EXPORTED +RUBY_FUNC_NONNULL(1, VALUE rb_funcallv_with_cc(struct rb_call_data*, VALUE, ID, int, const VALUE*)); + +#ifdef __GNUC__ # define rb_funcallv(recv, mid, argc, argv) \ __extension__({ \ static struct rb_call_data rb_funcallv_data = { { 0, }, { 0, }, }; \ rb_funcallv_with_cc(&rb_funcallv_data, recv, mid, argc, argv); \ }) #endif - ; /* miniprelude.c, prelude.c */ void Init_prelude(void); -- cgit v1.2.3