diff options
author | Kenta Murata <[email protected]> | 2020-12-19 11:55:46 +0900 |
---|---|---|
committer | Kenta Murata <[email protected]> | 2020-12-19 22:13:58 +0900 |
commit | 654f6fbf19c0ca2e01765a909b4d952b7f0f5baa (patch) | |
tree | 4596101121252a268228a757e62ace9ffb861fa8 /ext/bigdecimal/bigdecimal.h | |
parent | ff9e40811c67b1090966b655f7adc0684fc58abe (diff) |
[bigdecimal] Make BigDecimal#precs deprecated
https://github.com/ruby/bigdecimal/commit/7e80e6e145
https://github.com/ruby/bigdecimal/commit/0ed7846e8c
Diffstat (limited to 'ext/bigdecimal/bigdecimal.h')
-rw-r--r-- | ext/bigdecimal/bigdecimal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index e3eae06e67..28f3363b3c 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -159,6 +159,10 @@ rb_sym2str(VALUE sym) # define vabs llabs #endif +#if !defined(HAVE_RB_CATEGORY_WARN) || !defined(HAVE_CONST_RB_WARN_CATEGORY_DEPRECATED) +# define rb_category_warn(category, ...) rb_warn(__VA_ARGS__) +#endif + extern VALUE rb_cBigDecimal; #if 0 || SIZEOF_BDIGITS >= 16 |