[前][次][番号順一覧][スレッド一覧]

ruby-changes:39540

From: nobu <ko1@a...>
Date: Tue, 18 Aug 2015 11:41:19 +0900 (JST)
Subject: [ruby-changes:39540] nobu:r51621 (trunk): ruby.h: adjust for g++

nobu	2015-08-18 11:40:55 +0900 (Tue, 18 Aug 2015)

  New Revision: 51621

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51621

  Log:
    ruby.h: adjust for g++
    
    * include/ruby/ruby.h (RClass): move `__attribute__` after the
      keyword `struct` for g++.  [ruby-core:70297] [Bug #11426]

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 51620)
+++ include/ruby/ruby.h	(revision 51621)
@@ -825,8 +825,8 @@ struct RObject { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L825
      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)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51620)
+++ ChangeLog	(revision 51621)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug 18 11:40:51 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/ruby.h (RClass): move `__attribute__` after the
+	  keyword `struct` for g++.  [ruby-core:70297] [Bug #11426]
+
 Mon Aug 17 20:56:36 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y: fix syntax error at do-block after a conditional

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]