1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby.c (ruby_init_loadpath_safe): VARIABLE_LIBPATH is always

defined, see its value instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-05-17 14:05:08 +00:00
parent d291fd5208
commit 3b6d6b0861
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun May 17 23:05:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (ruby_init_loadpath_safe): VARIABLE_LIBPATH is always
defined, see its value instead.
Sun May 17 18:59:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.h (nd_line): NODE_LMASK is not needed.

2
ruby.c
View file

@ -381,7 +381,7 @@ ruby_init_loadpath_safe(int safe_level)
translit_char(libpath, '\\', '/');
#elif defined __CYGWIN__
{
# ifdef VARIABLE_LIBPATH
# if VARIABLE_LIBPATH
const int win_to_posix = CCP_WIN_A_TO_POSIX | CCP_RELATIVE;
size_t newsize = cygwin_conv_path(win_to_posix, libpath, 0, 0);
if (newsize > 0) {