summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-07 22:54:38 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-07 22:54:38 +0900
commit3229e0583fba6a7f1c58a1dd8aa7d4ca9c5155d9 (patch)
tree36b316793e5a48066395e5c74b0ef9c11a2a3359
parent0cf6bfca7866a0205ba6d603cca7c87f4db0065e (diff)
hash.c: gc.h is needed when HASH_DEBUG mode
-rw-r--r--hash.c4
1 files changed, 4 insertions, 0 deletions
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) || \