summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-30 11:10:51 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-30 11:10:51 +0000
commit5caa545b1d686cda511deeed091f2dbc1bb24fb3 (patch)
treed97de37175421b275ddf4d54c5ca3dd2ce1b56f3 /time.c
parente1e7939e940ee1859539ad09336f812d19d0d12e (diff)
downloadruby-5caa545b1d686cda511deeed091f2dbc1bb24fb3.tar.gz
ruby-5caa545b1d686cda511deeed091f2dbc1bb24fb3.tar.xz
ruby-5caa545b1d686cda511deeed091f2dbc1bb24fb3.zip
* time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6235 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 6dfea976e..1a7444c66 100644
--- a/time.c
+++ b/time.c
@@ -1259,6 +1259,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
OSZAR »