From cd1d6d90299d727ad4a87c42f3ba09c87df2bce3 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Wed, 22 Jul 2020 14:44:25 +0900 Subject: include/ruby/backward/2/r_cast.h: deprecate Remove all usages of RCAST() so that the header file can be excluded from ruby/ruby.h's dependency. --- internal/struct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/struct.h') diff --git a/internal/struct.h b/internal/struct.h index b00dfffd34..82b2738b69 100644 --- a/internal/struct.h +++ b/internal/struct.h @@ -31,7 +31,7 @@ struct RStruct { } as; }; -#define RSTRUCT(obj) (R_CAST(RStruct)(obj)) +#define RSTRUCT(obj) ((struct RStruct *)(obj)) #ifdef RSTRUCT_LEN # undef RSTRUCT_LEN -- cgit v1.2.3