summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 14:05:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-17 14:05:08 +0000
commit3b6d6b086138ab408cf2892dd1036a2acfe36104 (patch)
tree5001180f8362eae0756a283f3e086f24d84f1f0d /ruby.c
parentd291fd52084187a7d7ed09927a2c98b4589d157c (diff)
downloadruby-3b6d6b086138ab408cf2892dd1036a2acfe36104.tar.gz
* 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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 059f3c26e8..3188b7135b 100644
--- a/ruby.c
+++ b/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) {