ruby-changes:69695
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 11 Nov 2021 11:46:19 +0900 (JST)
Subject: [ruby-changes:69695] 1370b0876f (master): io/buffer.h: C linkage
https://git.ruby-lang.org/ruby.git/commit/?id=1370b0876f From 1370b0876f4d67e20e8f50f3c048447befd71fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 11 Nov 2021 09:49:55 +0900 Subject: io/buffer.h: C linkage Because `make install` installs this header to target systems, it must be ready to be `#include`d form a C++ program. --- include/ruby/io/buffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h index c6132c572a6..9c0eaefcc53 100644 --- a/include/ruby/io/buffer.h +++ b/include/ruby/io/buffer.h @@ -16,7 +16,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/io/buffer.h#L16 #include "ruby/ruby.h" #include "ruby/internal/config.h" -RUBY_SYMBOL_EXPORT_BEGIN +RBIMPL_SYMBOL_EXPORT_BEGIN() // WARNING: This entire interface is experimental and may change in the future! #define RB_IO_BUFFER_EXPERIMENTAL 1 @@ -73,6 +73,6 @@ size_t rb_io_buffer_copy(VALUE self, VALUE source, size_t offset); https://github.com/ruby/ruby/blob/trunk/include/ruby/io/buffer.h#L73 void rb_io_buffer_resize(VALUE self, size_t size, size_t preserve); void rb_io_buffer_clear(VALUE self, uint8_t value, size_t offset, size_t length); -RUBY_SYMBOL_EXPORT_END +RBIMPL_SYMBOL_EXPORT_END() #endif /* RUBY_IO_BUFFER_T */ -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/