summaryrefslogtreecommitdiffstats
path: root/time.c
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
commitd24676ba93a984a3676e342add3e22ce8b733303 (patch)
tree4bcef8ccc5489059b94e3b62b880fdb697b275b3 /time.c
parentc740c75ef28ac5ad0c605be7f5ca4cf1a3ce0231 (diff)
downloadruby-d24676ba93a984a3676e342add3e22ce8b733303.tar.gz
ruby-d24676ba93a984a3676e342add3e22ce8b733303.tar.xz
ruby-d24676ba93a984a3676e342add3e22ce8b733303.zip
* time.c (tmcmp, search_time_t): activate unless HAVE_TIMEGM.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/time.c b/time.c
index 62865bf56..971d21dfa 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)
OSZAR »