summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-06 10:02:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-06 10:02:04 +0000
commit956d35e2d00e331ad2bbf601db5f05bbf7097be8 (patch)
treef882f19699302c90666e88d486f102c7294eaacd
parent9d170240957813fc5a4758081676d80cc97c3785 (diff)
refix of r66200
Though internal.h has the prototype, it still shows symbol lookup error... https://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-trunk/log/20181206T050002Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--include/ruby/ruby.h5
-rw-r--r--internal.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 9e9423e810..649ece290a 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2163,6 +2163,11 @@ rb_array_const_ptr(VALUE a)
return rb_array_const_ptr_transient(a);
}
+/* fix related to r66200 */
+#ifdef __INTEL_COMPILER
+VALUE *rb_ary_ptr_use_start(VALUE ary);
+#endif
+
/* internal function. do not use this function */
static inline VALUE *
rb_array_ptr_use_start(VALUE a, int allow_transient)
diff --git a/internal.h b/internal.h
index 84603bb911..a92b0d4a54 100644
--- a/internal.h
+++ b/internal.h
@@ -1296,7 +1296,6 @@ VALUE rb_to_array_type(VALUE obj);
VALUE rb_check_to_array(VALUE ary);
VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *);
VALUE rb_ary_behead(VALUE, long);
-VALUE *rb_ary_ptr_use_start(VALUE ary);
#if defined(__GNUC__) && defined(HAVE_VA_ARGS_MACRO)
#define rb_ary_new_from_args(n, ...) \
__extension__ ({ \