summaryrefslogtreecommitdiff
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
commit765a1a05dd06bb3613f3b0c0be569eee9aa83a78 (patch)
tree8ef97c0112356a1b21e056327c613b1650683349 /time.c
parent69a46ba935872f049dd2bfea9345c6040d1d9a8a (diff)
* 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
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 a83ce74..b177c5f 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