From 90b53f4c29dd845140175943263b9c67995324c4 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Mon, 11 Jan 2021 09:21:07 +0900 Subject: Avoid including `presym.inc` in existing header files Addressed an issue where existing programs linking `libmruby.a` could only be built by adding `/include` to compiler's include path. --- src/hash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hash.c') diff --git a/src/hash.c b/src/hash.c index fe14865cf..714601b02 100644 --- a/src/hash.c +++ b/src/hash.c @@ -11,6 +11,7 @@ #include #include #include +#include /* * === Glossary @@ -254,6 +255,8 @@ HT_ASSERT_SAFE_READ(ea_capa); #define h_ar_p(h) (!h_ht_p(h)) #define h_ar_on(h) h_ht_off(h) #define lesser(a, b) ((a) < (b) ? (a) : (b)) +#define RHASH_IFNONE(hash) mrb_iv_get(mrb, (hash), MRB_SYM(ifnone)) +#define RHASH_PROCDEFAULT(hash) RHASH_IFNONE(hash) static uint32_t ib_upper_bound_for(uint32_t capa); static uint32_t ib_bit_to_capa(uint32_t bit); -- cgit v1.2.3