diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 14:03:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-31 14:03:34 +0000 |
commit | fabe115f9bb0e22afc7157483237295512581dcf (patch) | |
tree | 2d98551d5f2f3b6a5dd30405a2b2f276093ad62c | |
parent | 5b9afca5e435f37c7affce56e81e6bc20a5d8b3c (diff) | |
download | ruby-fabe115f9bb0e22afc7157483237295512581dcf.tar.gz |
* ext/etc/etc.c: revert getenv()'s prototype. use it only when _WIN32
is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/etc/etc.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jul 31 23:02:47 2003 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/etc/etc.c: revert getenv()'s prototype. use it only when _WIN32 + is not defined. + Thu Jul 31 15:25:12 2003 NAKAMURA Usaku <usa@ruby-lang.org> * array.c (rb_ary_collect): must get length of array for each diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 50137c87b2..51668c400f 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -25,7 +25,9 @@ static VALUE sPasswd, sGroup; -char *getenv _((const char *)); +#ifndef _WIN32 +char *getenv(); +#endif char *getlogin(); static VALUE |