summaryrefslogtreecommitdiff
path: root/include/ruby/io
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-11-11 09:49:55 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-11-11 11:45:19 +0900
commit1370b0876f4d67e20e8f50f3c048447befd71fdc (patch)
tree77811752900862d8538a0bbebd168e01280c6c5e /include/ruby/io
parentdb316e627f32cf73e3cc8f8d67b67894f36c17f3 (diff)
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.
Diffstat (limited to 'include/ruby/io')
-rw-r--r--include/ruby/io/buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h
index c6132c572a..9c0eaefcc5 100644
--- a/include/ruby/io/buffer.h
+++ b/include/ruby/io/buffer.h
@@ -16,7 +16,7 @@
#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);
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 */