aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r--include/ruby/io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index f0f83fc329..ba166f8c9a 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -27,6 +27,10 @@ extern "C" {
#include <stdio_ext.h>
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
typedef struct rb_io_t {
int fd; /* file descriptor */
FILE *stdio_file; /* stdio ptr for read/write if available */
@@ -165,6 +169,10 @@ void rb_io_read_check(rb_io_t*);
int rb_io_read_pending(rb_io_t*);
DEPRECATED(void rb_read_check(FILE*));
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */