From 3bc2f5a9b6a846c79f402ca9e3981540db8c8925 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 29 Jan 2018 08:11:02 +0000 Subject: [PATCH] redefinition of a typedef is a C11ism git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ruby_vm/views/_attributes.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/ruby_vm/views/_attributes.erb b/tool/ruby_vm/views/_attributes.erb index d15299c235..9229f1a5ce 100644 --- a/tool/ruby_vm/views/_attributes.erb +++ b/tool/ruby_vm/views/_attributes.erb @@ -5,10 +5,13 @@ %# 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 %