1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

hash.c: gc.h is needed when HASH_DEBUG mode

This commit is contained in:
Yusuke Endoh 2019-08-07 22:54:38 +09:00
parent 0cf6bfca78
commit 3229e0583f

4
hash.c
View file

@ -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) || \