summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 06:08:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 06:08:13 +0000
commita7e5f0b5ee2f53c7ad903fbb50296523f8af11a3 (patch)
tree0efaedd4932fb03d57596ba6023355e486159552 /internal.h
parent0d3d9eff4d59d36f1545c4fe9f00916bcfd417ac (diff)
internal.h: export rb_sys_fail_path_with_func
* internal.h (rb_sys_fail_path_with_func): export for socket/basicsocket.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 0902ac05c2..56c096a009 100644
--- a/internal.h
+++ b/internal.h
@@ -123,7 +123,13 @@ VALUE rb_get_path_check_convert(VALUE, VALUE, int);
void Init_File(void);
#ifdef RUBY_FUNCTION_NAME_STRING
+# if defined __GNUC__ && __GNUC__ >= 4
+# pragma GCC visibility push(default)
+# endif
NORETURN(void rb_sys_fail_path_with_func(const char *func_name, VALUE path));
+# if defined __GNUC__ && __GNUC__ >= 4
+# pragma GCC visibility pop
+# endif
# define rb_sys_fail_path(path) rb_sys_fail_path_with_func(RUBY_FUNCTION_NAME_STRING, path)
#else
# define rb_sys_fail_path(path) rb_sys_fail_str(path)