From 765a1a05dd06bb3613f3b0c0be569eee9aa83a78 Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 30 Apr 2004 11:10:51 +0000 Subject: * time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ time.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index e6bd08ae9e..754f6c0269 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Apr 30 20:08:41 2004 WATANABE Hirofumi + + * time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT. + Tue Apr 27 08:41:28 2004 why the lucky stiff * lib/yaml/rubytypes.rb: passing Range tests. diff --git a/time.c b/time.c index a83ce748da..b177c5fbc9 100644 --- a/time.c +++ b/time.c @@ -1256,6 +1256,8 @@ time_to_s(time) #if SIZEOF_TIME_T == SIZEOF_LONG typedef unsigned long unsigned_time_t; +#elif SIZEOF_TIME_T == SIZEOF_INT +typedef unsigned int unsigned_time_t; #elif SIZEOF_TIME_T == SIZEOF_LONG_LONG typedef unsigned long long unsigned_time_t; #else -- cgit v1.2.3