From adbded99ab66dd4da5daa65db02fe890ab3e9729 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 21 Dec 2009 11:32:58 -0700 Subject: [PATCH] math, unistd: avoid redundant includes * lib/math.in.h (isnan): No need to re-include . * lib/unistd.in.h (getcwd): Likewise, for . Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ lib/math.in.h | 3 --- lib/unistd.in.h | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 434b7b306..903ea914c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-12-22 Eric Blake + math, unistd: avoid redundant includes + * lib/math.in.h (isnan): No need to re-include . + * lib/unistd.in.h (getcwd): Likewise, for . + getsubopt: work around cygwin bug * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to avoid conflicting with system getsubopt. diff --git a/lib/math.in.h b/lib/math.in.h index 614896e36..803fd2db9 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -411,7 +411,6 @@ extern int gl_isinfl (long double x); # if @HAVE_ISNANF@ /* The original included above provides a declaration of isnan macro or (older) isnanf function. */ -# include # if __GNUC__ >= 4 /* GCC 4.0 and newer provides three built-ins for isnan. */ # undef isnanf @@ -434,7 +433,6 @@ extern int isnanf (float x); to 'double' numbers earlier but now is a type-generic macro. */ # if @HAVE_ISNAND@ /* The original included above provides a declaration of isnan macro. */ -# include # if __GNUC__ >= 4 /* GCC 4.0 and newer provides three built-ins for isnan. */ # undef isnand @@ -455,7 +453,6 @@ extern int isnand (double x); /* Test for NaN for 'long double' numbers. */ # if @HAVE_ISNANL@ /* The original included above provides a declaration of isnan macro or (older) isnanl function. */ -# include # if __GNUC__ >= 4 /* GCC 4.0 and newer provides three built-ins for isnan. */ # undef isnanl diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 0cf9a87aa..f37c7baff 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -346,9 +346,6 @@ extern int ftruncate (int fd, off_t length); #if @GNULIB_GETCWD@ -/* Include the headers that might declare getcwd so that they will not - cause confusion if included after this file. */ -# include # if @REPLACE_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. -- 2.11.0