[ruby/bigdecimal] Add fallback definition of MAYBE_UNUSED

https://github.com/ruby/bigdecimal/commit/b2123faa52
This commit is contained in:
Kenta Murata 2022-11-15 15:58:56 +09:00 committed by git
parent c925a2ee91
commit c75de1e330

View File

@ -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)