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/rpmatch.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/rpmatch.c')
-rw-r--r-- | lib/rpmatch.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c index 02c2abdb88..7759d0ca7e 100644 --- a/lib/rpmatch.c +++ b/lib/rpmatch.c @@ -1,6 +1,6 @@ /* Determine whether string value is affirmation or negative response according to current locale's data. - Copyright (C) 1996, 1998, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1996, 1998, 2000, 2002, 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 @@ -20,20 +20,14 @@ # include <config.h> #endif +#include <stddef.h> #if STDC_HEADERS || _LIBC -# include <stddef.h> # include <stdlib.h> -#else -# ifndef NULL -# define NULL 0 -# endif #endif #if ENABLE_NLS # include <sys/types.h> -# if HAVE_LIMITS_H -# include <limits.h> -# endif +# include <limits.h> # include <regex.h> # include "gettext.h" # define _(msgid) gettext (msgid) |