summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-02 13:31:14 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-02 13:31:14 +0000
commitff9f9c6d844cc966fc33090d1eac9e7121c4a445 (patch)
treee2fb00662df2df8e2ab50e69500ea3086f2e5ece /hash.c
parentead0c5d356dd84acf3ad8a7f41f6b5bf2fb363c5 (diff)
* hash.c (getenv): fixed test failures introduced by r43950.
[ruby-core:58774] [Bug #9195] reported by phasis68 (Heesob Park). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 6b5fca7e41..b4ce6acbf9 100644
--- a/hash.c
+++ b/hash.c
@@ -2409,7 +2409,7 @@ static char **my_environ;
#define environ my_environ
#undef getenv
inline char *
-getenv(const char *name)
+w32_getenv(const char *name)
{
static int binary = -1;
static int locale = -1;
@@ -2419,6 +2419,7 @@ getenv(const char *name)
}
return locale == binary ? rb_w32_getenv(name) : rb_w32_ugetenv(name);
}
+#define getenv(n) w32_getenv(n)
#elif defined(__APPLE__)
#undef environ
#define environ (*_NSGetEnviron())