* include/tzfile.h: Add some missing entries.

This commit is contained in:
Christopher Faylor 2003-09-25 03:51:51 +00:00
parent dbf193cea8
commit cd2bce7142
8 changed files with 47 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2003-09-24 Christopher Faylor <cgf@redhat.com>
* include/tzfile.h: Add some missing entries.
2003-09-24 Christopher Faylor <cgf@redhat.com> 2003-09-24 Christopher Faylor <cgf@redhat.com>
* include/paths.h: Add some missing entries. * include/paths.h: Add some missing entries.

View File

@ -1,6 +1,6 @@
/* tzfile.h /* tzfile.h
Copyright 2001 Red Hat, Inc. Copyright 2001, 2002, 2003 Red Hat, Inc.
This file is part of Cygwin. This file is part of Cygwin.
@ -11,9 +11,42 @@ details. */
#ifndef _TZFILE_H #ifndef _TZFILE_H
#define _TZFILE_H #define _TZFILE_H
#define SECSPERDAY (60*60*24) #define SECSPERMIN 60
#define MINSPERHOUR 60
#define HOURSPERDAY 24
#define DAYSPERWEEK 7
#define DAYSPERNYEAR 365 #define DAYSPERNYEAR 365
#define DAYSPERLYEAR 366 #define DAYSPERLYEAR 366
#define SECSPERHOUR (SECSPERMIN * MINSPERHOUR)
#define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY)
#define MONSPERYEAR 12
#define TM_SUNDAY 0
#define TM_MONDAY 1
#define TM_TUESDAY 2
#define TM_WEDNESDAY 3
#define TM_THURSDAY 4
#define TM_FRIDAY 5
#define TM_SATURDAY 6
#define TM_JANUARY 0
#define TM_FEBRUARY 1
#define TM_MARCH 2
#define TM_APRIL 3
#define TM_MAY 4
#define TM_JUNE 5
#define TM_JULY 6
#define TM_AUGUST 7
#define TM_SEPTEMBER 8
#define TM_OCTOBER 9
#define TM_NOVEMBER 10
#define TM_DECEMBER 11
#define TM_SUNDAY 0
#define TM_YEAR_BASE 1900
#define EPOCH_YEAR 1970
#define EPOCH_WDAY TM_THURSDAY
#define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0) #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
#endif #endif