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:
parent
d291fd5208
commit
3b6d6b0861
2 changed files with 6 additions and 1 deletions
|
@ -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
2
ruby.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue