From 6f88631baa65b121c9f580db18d26162b1f65ff6 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 1 Jul 2008 07:59:21 +0000 Subject: * include/ruby/st.h (struct st_table): type of bit-field 'num_entries' is a GCC extension git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/st.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby/st.h') diff --git a/include/ruby/st.h b/include/ruby/st.h index 199d67e411..d23f761e7e 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -56,6 +56,9 @@ struct st_table { const struct st_hash_type *type; st_index_t num_bins; unsigned int entries_packed : 1; +#ifdef __GNUC__ + __extension__ +#endif st_index_t num_entries : ST_INDEX_BITS - 1; struct st_table_entry **bins; struct st_table_entry *head; -- cgit v1.2.3