mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* time.c (tmcmp, search_time_t): activate unless HAVE_TIMEGM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b3a6c7aec
commit
1715197c37
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed May 29 17:32:55 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* time.c (tmcmp, search_time_t): activate unless HAVE_TIMEGM.
|
||||
|
||||
Wed May 29 13:45:15 2002 Wakou Aoyama <wakou@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb: not use const if GET, HEAD. check multipart form head.
|
||||
|
|
2
time.c
2
time.c
|
@ -323,6 +323,7 @@ static VALUE time_gmtime _((VALUE));
|
|||
static VALUE time_localtime _((VALUE));
|
||||
static VALUE time_get_tm _((VALUE, int));
|
||||
|
||||
#if !defined HAVE_TIMEGM
|
||||
static int
|
||||
tmcmp(a, b)
|
||||
struct tm *a;
|
||||
|
@ -573,6 +574,7 @@ search_time_t(tptr, utc_p)
|
|||
rb_raise(rb_eArgError, "gmtime/localtime error");
|
||||
return 0; /* not reached */
|
||||
}
|
||||
#endif
|
||||
|
||||
static time_t
|
||||
make_time_t(tptr, utc_p)
|
||||
|
|
Loading…
Reference in a new issue