summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 06:33:00 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 06:33:00 +0000
commitb4236d6e71852135dd24c80da46b96ee55e1c0c4 (patch)
treee0a7e7b43de65c569a889a0af7be0688a87b0578 /time.c
parentee2434851bb22974e0dbfd0cfaf3ebced6b38d68 (diff)
* time.c: should use LONG_LONG instead of `long long'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/time.c b/time.c
index e2dc06644d..a1980d07d0 100644
--- a/time.c
+++ b/time.c
@@ -1206,7 +1206,7 @@ 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;
+typedef unsigned LONG_LONG unsigned_time_t;
#else
# error cannot find integer type which size is same as time_t.
#endif
@@ -1670,10 +1670,9 @@ time_to_a(VALUE time)
#define SMALLBUF 100
static int
-rb_strftime(
- char ** volatile buf,
- char * volatile format,
- struct tm * volatile time)
+rb_strftime(char ** volatile buf,
+ char * volatile format,
+ struct tm * volatile time)
{
volatile int size;
int len, flen;