summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 08:42:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 08:42:18 +0000
commit1715197c37383ddeb077e96cb8c18a0d7d890087 (patch)
tree4bcef8ccc5489059b94e3b62b880fdb697b275b3
parent4b3a6c7aecca7eeb7dd52ff7b22cbe6c3bbbcc07 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--time.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fce551e39d..afcaef29fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/time.c b/time.c
index 62865bf56a..971d21dfab 100644
--- a/time.c
+++ b/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)