From c5d6a1ba48306652bb96bf0bf081c8c66cb45ef5 Mon Sep 17 00:00:00 2001 From: eban Date: Tue, 14 May 2002 05:59:35 +0000 Subject: * 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/trunk@2454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/strftime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'missing') diff --git a/missing/strftime.c b/missing/strftime.c index a9e0bc0757..77c41d5fc5 100644 --- a/missing/strftime.c +++ b/missing/strftime.c @@ -447,8 +447,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 */ -- cgit v1.2.3