diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-14 06:10:51 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-14 06:10:51 +0000 |
commit | b739ba71759cc68b0fe22364b55301a851e7850e (patch) | |
tree | f1ffe233605c7fa709a90f1cdc9ce60db47612e6 /missing | |
parent | 81120f937569248317f72d34327cb51cf328a44e (diff) |
* gc.c (is_pointer_to_heap): avoid GCC 3.1 warnings.
* missing/strftime.c (timezone): it should take no argument on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/strftime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/missing/strftime.c b/missing/strftime.c index 3042649aeb..da43fecb65 100644 --- a/missing/strftime.c +++ b/missing/strftime.c @@ -446,8 +446,12 @@ strftime(char *s, size_t maxsize, const char *format, const struct tm *timeptr) strcpy(tbuf, timeptr->tm_name); #else gettimeofday(& tv, & zone); +#ifdef __CYGWIN__ + strcpy(tbuf, timezone()); +#else strcpy(tbuf, timezone(zone.tz_minuteswest, timeptr->tm_isdst > 0)); +#endif #endif /* HAVE_TM_NAME */ #endif /* HAVE_TM_ZONE */ #endif /* HAVE_TZNAME */ |