summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-01-17 15:20:25 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-01-17 15:24:43 -0800
commitaf1ebd6bbbc0eec68335935fff5515d29a764b4c (patch)
treeafe0262b022233d38654976d11cebe86222c59bf /strftime.c
parent8e606cd1b4c6a8bd2277a003f136b588f7feae2a (diff)
downloadtz-af1ebd6bbbc0eec68335935fff5515d29a764b4c.tar.gz
Remove duplication between private.h and zdump.c
* NEWS: Document this. * asctime.c, strftime.c: Do not include tzfile.h, since this source file is independent of tz binary file format. * private.h (TYPE_BIT, TYPE_SIGNED, INT_STRLEN_MAXIMUM, _) (YEARSPERREPEAT, AVGSECSPERYEAR, SECSPERREPEAT) (SECSPERREPEAT_BITS): Don’t worry about whether these are already defined, as these macros are not intended to be overridden by the user. * private.h, tzfile.h (SECSPERMIN, MINSPERHOUR, HOURSPERDAY, DAYSPERWEEK) (DAYSPERNYEAR, DAYSPERLYEAR, SECSPERHOUR, SECSPERDAY) (MONSPERYEAR, TM_SUNDAY, TM_MONDAY, TM_TUESDAY, TM_WEDNESDAY) (TM_THURSDAY, TM_FRIDAY, TM_SATURDAY, TM_JANUARY, TM_FEBRUARY) (TM_MARCH, TM_APRIL, TM_MAY, TM_JUNE, TM_JULY, TM_AUGUST) (TM_SEPTEMBER, TM_OCTOBER, TM_NOVEMBER, TM_DECEMBER) (TM_YEAR_BASE, EPOCH_YEAR, EPOCH_WDAY, isleap, isleap_sum): Move from tzfile.h to private.h, as these macros are independent of file format. * zdump.c: Always include private.h. Do not include files that private.h already includes for us. Remove definitions that are duplicates of what is in private.h. Use angle brackets for system includes This is the more-usual style nowadays, and makes it easier to distinguish system includes from our includes.
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/strftime.c b/strftime.c
index 3920b10..a0454ce 100644
--- a/strftime.c
+++ b/strftime.c
@@ -35,7 +35,6 @@
#include "private.h"
-#include "tzfile.h"
#include <fcntl.h>
#include <locale.h>