aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-23 12:22:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-23 12:22:10 +0000
commit2ffb87995a33cdc7ba609a4b867f03f18da0c3b3 (patch)
treeb5d86908fb6ab1ea7dda7266bb97cee14b969dec /file.c
parentc57932f782ba03b3aab667a877c5b6143b214d26 (diff)
downloadruby-2ffb87995a33cdc7ba609a4b867f03f18da0c3b3.tar.gz
file.c: move rb_readlink on Windows
* win32/file.c (rb_readlink): move from file.c for better buffer allocation and the result encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index bd8aeec784..00ef6e90d0 100644
--- a/file.c
+++ b/file.c
@@ -2790,6 +2790,7 @@ rb_file_s_readlink(VALUE klass, VALUE path)
return rb_readlink(path);
}
+#ifndef _WIN32
VALUE
rb_readlink(VALUE path)
{
@@ -2818,6 +2819,7 @@ rb_readlink(VALUE path)
return v;
}
+#endif
#else
#define rb_file_s_readlink rb_f_notimplement
#endif