Add DAYSPERNYEAR, SECSPERDAY.

Add casts to time_t on constants in DAYSPERNYEAR, SECSPERDAY for 16bit-int targets.
This commit is contained in:
Ralf Corsepius
2009-10-22 04:29:55 +00:00
parent 0f4bf2f2aa
commit 306dba911a

View File

@@ -68,6 +68,10 @@ __RCSID("$NetBSD: print.c,v 1.40 2004/11/17 17:00:00 mycroft Exp $");
#include "extern-ls.h" #include "extern-ls.h"
#define DAYSPERNYEAR ((time_t)365)
#define SECSPERDAY ((time_t)60 * (time_t)60 * (time_t)24)
#if RTEMS_REMOVED #if RTEMS_REMOVED
extern int termwidth; extern int termwidth;
#endif #endif