summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-19 10:16:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-19 10:16:22 +0900
commit1d170fdc6d0af128c9e5ea2d6082790d5885a4ae (patch)
treef323ae13a7681abc0c00d277c4091a839ab4751f /ext
parent637683c9f4113fff73f3c438b33dd91b25001666 (diff)
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.h4
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 */