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

ruby-changes:59660

From: Yusuke <ko1@a...>
Date: Thu, 9 Jan 2020 23:58:16 +0900 (JST)
Subject: [ruby-changes:59660] c6b26f5ccf (master): io.c, ruby.c: include internal/variable.h for rb_gvar_readonly_setter

https://git.ruby-lang.org/ruby.git/commit/?id=c6b26f5ccf

From c6b26f5ccf9296f7fbb23c055401c4f55d32efa0 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 9 Jan 2020 23:52:01 +0900
Subject: io.c, ruby.c: include internal/variable.h for rb_gvar_readonly_setter

Same as 053f78e13988e9253d1f207bf5e23d9505112b32.
emscripten requires a prototype declaration of rb_gvar_readonly_setter
if it is refered as a function pointer.

diff --git a/io.c b/io.c
index a6a7dd3..294abfe 100644
--- a/io.c
+++ b/io.c
@@ -127,6 +127,7 @@ https://github.com/ruby/ruby/blob/trunk/io.c#L127
 #include "ccan/list/list.h"
 #include "internal/thread.h"
 #include "internal/transcode.h"
+#include "internal/variable.h"
 #include "ruby/io.h"
 #include "ruby/thread.h"
 #include "ruby/util.h"
diff --git a/ruby.c b/ruby.c
index 2d1a437..509ba61 100644
--- a/ruby.c
+++ b/ruby.c
@@ -56,6 +56,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby.c#L56
 #include "internal/missing.h"
 #include "internal/object.h"
 #include "internal/parse.h"
+#include "internal/variable.h"
 #include "mjit.h"
 #include "ruby/encoding.h"
 #include "ruby/thread.h"
-- 
cgit v0.10.2


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

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