ruby-changes:56863
From: Yusuke <ko1@a...>
Date: Wed, 7 Aug 2019 22:55:25 +0900 (JST)
Subject: [ruby-changes:56863] Yusuke Endoh: 3229e0583f (master): hash.c: gc.h is needed when HASH_DEBUG mode
https://git.ruby-lang.org/ruby.git/commit/?id=3229e0583f From 3229e0583fba6a7f1c58a1dd8aa7d4ca9c5155d9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 7 Aug 2019 22:54:38 +0900 Subject: hash.c: gc.h is needed when HASH_DEBUG mode diff --git a/hash.c b/hash.c index 3fb519c..8085447 100644 --- a/hash.c +++ b/hash.c @@ -34,6 +34,10 @@ https://github.com/ruby/ruby/blob/trunk/hash.c#L34 #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) || \ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/