diff options
Diffstat (limited to 'newlib/libc/time/month_lengths.c')
-rw-r--r-- | newlib/libc/time/month_lengths.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/libc/time/month_lengths.c b/newlib/libc/time/month_lengths.c new file mode 100644 index 000000000..764e70042 --- /dev/null +++ b/newlib/libc/time/month_lengths.c @@ -0,0 +1,14 @@ +/* + * month_lengths.c + * + * Array month_lengths[] is (indirectly) needed by tzset(), mktime(), gmtime() + * and localtime(). To break any dependencies, this array is moved to separate + * source file. + */ + +#include "local.h" + +_CONST int month_lengths[2][MONSPERYEAR] = { + {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, + {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} +} ; |