ruby-changes:49972
From: shyouhei <ko1@a...>
Date: Mon, 29 Jan 2018 17:11:08 +0900 (JST)
Subject: [ruby-changes:49972] shyouhei:r62090 (trunk): redefinition of a typedef is a C11ism
shyouhei 2018-01-29 17:11:02 +0900 (Mon, 29 Jan 2018) New Revision: 62090 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62090 Log: redefinition of a typedef is a C11ism Modified files: trunk/tool/ruby_vm/views/_attributes.erb Index: tool/ruby_vm/views/_attributes.erb =================================================================== --- tool/ruby_vm/views/_attributes.erb (revision 62089) +++ tool/ruby_vm/views/_attributes.erb (revision 62090) @@ -5,10 +5,13 @@ https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_attributes.erb#L5 %# granted, to either redistribute and/or modify this file, provided that the %# conditions mentioned in the file COPYING are met. Consult the file for %# +#ifndef RUBY_VM_EXEC_H +/* can't #include "vm_exec.h" here... */ typedef long OFFSET; typedef unsigned long lindex_t; typedef VALUE GENTRY; typedef rb_iseq_t *ISEQ; +#endif % attrs = RubyVM::Instructions.map(&:attributes).flatten % -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/