diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2003-05-29 07:21:59 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2003-05-29 07:21:59 +0000 |
commit | 552a680fa612218b68d4ef2f49bc276b95f6677b (patch) | |
tree | 2f02ae2220694b236bf85e512009aee45d5a3e70 /lib/modechange.c | |
parent | 83255753896e5084f5471391b2a1b44b9fe8b47b (diff) | |
download | gnulib-552a680fa612218b68d4ef2f49bc276b95f6677b.tar.gz |
in lib:
* addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
without checking for HAVE_LIMITS_H.
* backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
to do that.
* fatal.c: Include <stdarg.h> without checking for __STDC__.
* exclude.c: Include <stdbool.h> unconditionally.
* tempname.c: Include <stddef.h> unconditionally.
* hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
* modechange.c, rpmatch.c (NULL): Don't define, since
<stddef.h> does that.
* quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
* safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
* safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
* xstrtol.c: Likewise.
* safe-read.c: Remove TYPE_SIGNED; no longer needed.
* savedir.c: Include <stddef.h> instead of defining NULL.
in m4:
* backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
* fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
* human.m4 (gl_HUMAN): Likewise.
* pathmax.m4 (gl_PATHMAX): Likewise.
* rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
* userspec.m4 (gl_USERSPEC): Likewise.
* xreadlink.m4 (gl_XREADLINK): Likewise.
* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
* quote.m4 (gl_QUOTE): Don't check for stddef.h.
Diffstat (limited to 'lib/modechange.c')
-rw-r--r-- | lib/modechange.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/modechange.c b/lib/modechange.c index a102b6956f..d04614cf8a 100644 --- a/lib/modechange.c +++ b/lib/modechange.c @@ -1,5 +1,7 @@ /* modechange.c -- file mode manipulation - Copyright (C) 1989, 1990, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. + + Copyright (C) 1989, 1990, 1997, 1998, 1999, 2001, 2003 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +33,7 @@ #include "modechange.h" #include <sys/stat.h> #include "xstrtol.h" +#include <stddef.h> #if STDC_HEADERS # include <stdlib.h> @@ -38,10 +41,6 @@ char *malloc (); #endif -#ifndef NULL -# define NULL 0 -#endif - #if STAT_MACROS_BROKEN # undef S_ISDIR #endif |