From 8e606cd1b4c6a8bd2277a003f136b588f7feae2a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 17 Jan 2017 14:26:28 -0800 Subject: [PROPOSED 1/2] Use angle brackets for system includes This is the more-usual style nowadays, and makes it easier to distinguish system includes from our includes. --- date.c | 2 +- localtime.c | 2 +- private.h | 18 +++++++++--------- strftime.c | 4 ++-- zdump.c | 18 +++++++++--------- zic.c | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/date.c b/date.c index 512d1ef..866091f 100644 --- a/date.c +++ b/date.c @@ -28,7 +28,7 @@ SUCH DAMAGE. */ #include "private.h" -#include "locale.h" +#include /* ** The two things date knows about time are. . . diff --git a/localtime.c b/localtime.c index cc2a3d2..afc7438 100644 --- a/localtime.c +++ b/localtime.c @@ -14,7 +14,7 @@ #include "private.h" #include "tzfile.h" -#include "fcntl.h" +#include #if defined THREAD_SAFE && THREAD_SAFE # include diff --git a/private.h b/private.h index 0bd1d00..88210ab 100644 --- a/private.h +++ b/private.h @@ -104,13 +104,13 @@ #undef tzalloc #undef tzfree -#include "sys/types.h" /* for time_t */ -#include "stdio.h" -#include "string.h" -#include "limits.h" /* for CHAR_BIT et al. */ -#include "stdlib.h" +#include /* for time_t */ +#include +#include +#include /* for CHAR_BIT et al. */ +#include -#include "errno.h" +#include #ifndef ENAMETOOLONG # define ENAMETOOLONG EINVAL @@ -123,7 +123,7 @@ #endif #if HAVE_GETTEXT -#include "libintl.h" +#include #endif /* HAVE_GETTEXT */ #if HAVE_SYS_WAIT_H @@ -138,7 +138,7 @@ #endif /* !defined WEXITSTATUS */ #if HAVE_UNISTD_H -#include "unistd.h" /* for F_OK, R_OK, and other POSIX goodness */ +#include /* for F_OK, R_OK, and other POSIX goodness */ #endif /* HAVE_UNISTD_H */ #ifndef HAVE_STRFTIME_L @@ -173,7 +173,7 @@ #endif /* !defined HAVE_STDINT_H */ #if HAVE_STDINT_H -#include "stdint.h" +#include #endif /* !HAVE_STDINT_H */ #ifndef HAVE_INTTYPES_H diff --git a/strftime.c b/strftime.c index 2bfb6c1..3920b10 100644 --- a/strftime.c +++ b/strftime.c @@ -36,8 +36,8 @@ #include "private.h" #include "tzfile.h" -#include "fcntl.h" -#include "locale.h" +#include +#include struct lc_time_T { const char * mon[MONSPERYEAR]; diff --git a/zdump.c b/zdump.c index 1ddc6c6..64c5ac6 100644 --- a/zdump.c +++ b/zdump.c @@ -33,12 +33,12 @@ /* Enable strtoimax on Solaris 10. */ #define __EXTENSIONS__ 1 -#include "stdio.h" /* for stdout, stderr, perror */ -#include "string.h" /* for strcpy */ -#include "sys/types.h" /* for time_t */ -#include "time.h" /* for struct tm */ -#include "stdlib.h" /* for exit, malloc, atoi */ -#include "limits.h" /* for CHAR_BIT, LLONG_MAX */ +#include /* for stdout, stderr, perror */ +#include /* for strcpy */ +#include /* for time_t */ +#include /* for struct tm */ +#include /* for exit, malloc, atoi */ +#include /* for CHAR_BIT, LLONG_MAX */ #include #ifndef HAVE_POSIX_DECLS @@ -60,7 +60,7 @@ || __CYGWIN__ || INTMAX_MAX) #endif #if HAVE_STDINT_H -# include "stdint.h" +# include #endif #ifndef HAVE_INTTYPES_H # define HAVE_INTTYPES_H HAVE_STDINT_H @@ -245,8 +245,8 @@ enum { SECSPER400YEARS_FITS = SECSPERLYEAR <= INTMAX_MAX / 400 }; #define HAVE_GETTEXT 0 #endif #if HAVE_GETTEXT -#include "locale.h" /* for setlocale */ -#include "libintl.h" +#include /* for setlocale */ +#include #endif /* HAVE_GETTEXT */ #if 2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__) diff --git a/zic.c b/zic.c index 04798f4..068fb43 100644 --- a/zic.c +++ b/zic.c @@ -5,10 +5,10 @@ #include "version.h" #include "private.h" -#include "locale.h" #include "tzfile.h" #include +#include #include #include -- 2.9.3