diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-05-19 10:16:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-05-19 10:16:22 +0900 |
commit | 1d170fdc6d0af128c9e5ea2d6082790d5885a4ae (patch) | |
tree | f323ae13a7681abc0c00d277c4091a839ab4751f /ext | |
parent | 637683c9f4113fff73f3c438b33dd91b25001666 (diff) | |
download | ruby-1d170fdc6d0af128c9e5ea2d6082790d5885a4ae.tar.gz |
ext/json/parser/parser.h: Add fallback MAYBE_UNUSED
https://github.com/flori/json/commit/e2ad91fc2094d3cc2f76adc6c55d420cd06f34d8
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/parser/parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h index 0992bbf6e5..92ed3fdc5d 100644 --- a/ext/json/parser/parser.h +++ b/ext/json/parser/parser.h @@ -13,6 +13,10 @@ #include "st.h" #endif +#ifndef MAYBE_UNUSED +# define MAYBE_UNUSED(x) x +#endif + #define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key)) /* unicode */ |