diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-18 02:40:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-18 02:40:55 +0000 |
commit | 49389fe59d68ca7fb7fe1e3a05a751c5239f5ee1 (patch) | |
tree | 5519786ec3cccaf4cd5b1d8a07a16f32a08fd1f2 /include/ruby | |
parent | 94b1db5d673295b4276e809de4937a9536711540 (diff) | |
download | ruby-49389fe59d68ca7fb7fe1e3a05a751c5239f5ee1.tar.gz |
ruby.h: adjust for g++
* include/ruby/ruby.h (RClass): move `__attribute__` after the
keyword `struct` for g++. [ruby-core:70297] [Bug #11426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index cfc1005919..cbd4044d75 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -825,8 +825,8 @@ struct RObject { ROBJECT(o)->as.heap.iv_index_tbl) #define RClass RClassDeprecated -DEPRECATED_TYPE(("RClass is internal use only"), -struct RClass { +struct DEPRECATED_TYPE(("RClass is internal use only"), +RClass { struct RBasic basic; }); #define RCLASS_SUPER(c) rb_class_get_superclass(c) |