From c75de1e3304e804be9c073940f396c8a506a005f Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Tue, 15 Nov 2022 15:58:56 +0900 Subject: [PATCH] [ruby/bigdecimal] Add fallback definition of MAYBE_UNUSED https://github.com/ruby/bigdecimal/commit/b2123faa52 --- ext/bigdecimal/bigdecimal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 9b1d33ed9d..d6ea35c615 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -107,6 +107,10 @@ static struct { # define RB_OBJ_STRING(obj) StringValueCStr(obj) #endif +#ifndef MAYBE_UNUSED +# define MAYBE_UNUSED(x) x +#endif + #define BIGDECIMAL_POSITIVE_P(bd) ((bd)->sign > 0) #define BIGDECIMAL_NEGATIVE_P(bd) ((bd)->sign < 0)