From 9e6e39c3512f7a962c44dc3729c98a0f8be90341 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Wed, 8 Apr 2020 13:28:13 +0900 Subject: Merge pull request #2991 from shyouhei/ruby.h Split ruby.h --- include/ruby/io.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'include/ruby/io.h') diff --git a/include/ruby/io.h b/include/ruby/io.h index 7d7b1a0f01..5a80c76290 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -12,12 +12,7 @@ #ifndef RUBY_IO_H #define RUBY_IO_H 1 -#if defined(__cplusplus) -extern "C" { -#if 0 -} /* satisfy cc-mode */ -#endif -#endif +#include "ruby/3/config.h" #include #include "ruby/encoding.h" @@ -26,7 +21,6 @@ extern "C" { #include #endif -#include "ruby/config.h" #include #if defined(HAVE_POLL) # ifdef _AIX @@ -49,7 +43,8 @@ extern "C" { # define RB_WAITFD_OUT 0x004 #endif -RUBY_SYMBOL_EXPORT_BEGIN +#include "ruby/3/dllexport.h" +RUBY3_SYMBOL_EXPORT_BEGIN() PACKED_STRUCT_UNALIGNED(struct rb_io_buffer_t { char *ptr; /* off + len <= capa */ @@ -169,13 +164,6 @@ VALUE rb_stat_new(const struct stat *); /* gc.c */ -RUBY_SYMBOL_EXPORT_END - -#if defined(__cplusplus) -#if 0 -{ /* satisfy cc-mode */ -#endif -} /* extern "C" { */ -#endif +RUBY3_SYMBOL_EXPORT_END() #endif /* RUBY_IO_H */ -- cgit v1.2.3