diff options
-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 |