diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-05-17 06:14:29 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2007-05-17 06:14:29 +0000 |
commit | ab681e53f8100fdb144e0a100d6f2da9ff7c005f (patch) | |
tree | 9fa61f52eb916ae10c904e9af3d62aa707d77470 /lib/fcntl_.h | |
parent | 1875901e8d0bd6b30cbee33e223f1bebdaee9182 (diff) | |
download | gnulib-ab681e53f8100fdb144e0a100d6f2da9ff7c005f.tar.gz |
* lib/fcntl_.h: Prefer #include_next <foo.h> to #include
@ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
GCC 4.2, which otherwise issues a lot of warnings.
* lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
* lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
* lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
* lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
it should no longer be needed.
* lib/string_.h: Likewise.
* modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
* modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
* modules/inttypes (inttypes.h): Likewise.
* modules/math (math.h): Likewise.
* modules/search (search.h): Likewise.
* modules/signal (signal.h): Likewise.
* modules/stdint (stdint.h): Likewise.
* modules/stdio (stdio.h): Likewise.
* modules/stdlib (stdlib.h): Likewise.
* modules/string (string.h): Likewise.
* modules/sys_time (sys/time.h): Likewise.
* modules/time (time.h): Likewise.
* modules/wchar (wchar.h): Likewise.
* modules/wctype (wtype.h): Likewise.
Diffstat (limited to 'lib/fcntl_.h')
-rw-r--r-- | lib/fcntl_.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/fcntl_.h b/lib/fcntl_.h index e16ad54afe..98e1372005 100644 --- a/lib/fcntl_.h +++ b/lib/fcntl_.h @@ -24,7 +24,11 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include @ABSOLUTE_FCNTL_H@ +#if @HAVE_INCLUDE_NEXT@ +# include_next <fcntl.h> +#else +# include @ABSOLUTE_FCNTL_H@ +#endif /* Declare overridden functions. */ |