From 1a21c29aa6b02cbb66111a0e8dbf55e3c3ab1967 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 18 Aug 2015 02:40:55 +0000 Subject: 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 --- include/ruby/ruby.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ruby') 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) -- cgit v1.2.3