From 91b7d84e6d9216cf464bfb49a3f0721e57362e5e Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 15 Jan 2000 01:50:43 +0000 Subject: added IsLeapYear macro (from tclGetDate.y) --- compat/strftime.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compat/strftime.c b/compat/strftime.c index 1c14ca8..2203536 100644 --- a/compat/strftime.c +++ b/compat/strftime.c @@ -8,7 +8,7 @@ * source. See the copyright notice below for details on redistribution * restrictions. The "license.terms" file does not apply to this file. * - * RCS: @(#) $Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $ + * RCS: @(#) $Id: strftime.c,v 1.7 2000/01/15 01:50:43 hobbs Exp $ */ /* @@ -45,7 +45,7 @@ */ #if defined(LIBC_SCCS) -static char *rcsid = "$Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $"; +static char *rcsid = "$Id: strftime.c,v 1.7 2000/01/15 01:50:43 hobbs Exp $"; #endif /* LIBC_SCCS */ #include @@ -55,6 +55,7 @@ static char *rcsid = "$Id: strftime.c,v 1.6 2000/01/14 22:15:51 ericm Exp $"; #include "tclPort.h" #define TM_YEAR_BASE 1900 +#define IsLeapYear(x) ((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0)) typedef struct { const char *abday[7]; -- cgit v0.12