diff options
author | Jim Meyering <meyering@redhat.com> | 2009-12-04 23:35:23 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-12-04 23:35:23 +0100 |
commit | ecb0e55a4a278752032175ad8c628ec20388734a (patch) | |
tree | a77648bef9401e506ff78c27ff9f0f64b76d2740 /lib | |
parent | acd6c7be4dab1cc5d4012f1074691999d4fd3083 (diff) | |
download | grep-ecb0e55a4a278752032175ad8c628ec20388734a.tar.gz |
maint: enable prohibit_have_config_h check
* cfg.mk (local-checks-to-skip): Enable sc_prohibit_have_config_h
* lib/regex.c: Remove useless cpp test of HAVE_CONFIG_H.
* lib/savedir.c: Likewise.
* src/grep.c: Likewise.
* src/kwset.c: Likewise.
* src/search.c: Likewise.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/regex.c | 4 | ||||
-rw-r--r-- | lib/savedir.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/regex.c b/lib/regex.c index 6ad5c539..6ec4cb05 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -27,9 +27,7 @@ #undef _GNU_SOURCE #define _GNU_SOURCE -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif +#include <config.h> #ifndef PARAMS # if defined __GNUC__ || (defined __STDC__ && __STDC__) diff --git a/lib/savedir.c b/lib/savedir.c index e2c015af..c60e7c0c 100644 --- a/lib/savedir.c +++ b/lib/savedir.c @@ -18,9 +18,7 @@ /* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */ -#if HAVE_CONFIG_H -# include <config.h> -#endif +#include <config.h> #include <sys/types.h> #include <unistd.h> |