From 3229e0583fba6a7f1c58a1dd8aa7d4ca9c5155d9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 7 Aug 2019 22:54:38 +0900 Subject: [PATCH] hash.c: gc.h is needed when HASH_DEBUG mode --- hash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hash.c b/hash.c index 3fb519c537..808544793b 100644 --- a/hash.c +++ b/hash.c @@ -34,6 +34,10 @@ #define HASH_DEBUG 0 #endif +#if HASH_DEBUG +#include "gc.h" +#endif + #define HAS_EXTRA_STATES(hash, klass) ( \ ((klass = has_extra_methods(rb_obj_class(hash))) != 0) || \ FL_TEST((hash), FL_EXIVAR|FL_TAINT|RHASH_PROC_DEFAULT) || \