]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
syntax-check: fix violations and re-enable sc_prohibit_have_config_h.
authorGary V. Vaughan <gary@gnu.org>
Mon, 24 Oct 2011 11:35:36 +0000 (18:35 +0700)
committerGary V. Vaughan <gary@gnu.org>
Thu, 17 Nov 2011 12:21:07 +0000 (19:21 +0700)
* cfg.mk (local-checks-to-fix): Remove sc_prohibit_have_config_h
from list of disabled checks.
* tests/f77demo/foo.h, tests/fcdemo/foo.h: Remove spurious
HAVE_CONFIG_H guards for #include <config.h>.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
cfg.mk
tests/f77demo/foo.h
tests/fcdemo/foo.h

diff --git a/cfg.mk b/cfg.mk
index bd0b4ad824d725586f5bd2c3b7e0af14a69abfe7..8f99556983145595ef6a2ae7a42381284f88fe8b 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -40,7 +40,6 @@ VC_LIST_ALWAYS_EXCLUDE_REGEX = ^mail/
 local-checks-to-fix =                          \
        sc_prohibit_always-defined_macros       \
        sc_prohibit_always_true_header_tests    \
-       sc_prohibit_have_config_h               \
        sc_prohibit_magic_number_exit           \
        sc_prohibit_stddef_without_use          \
        sc_prohibit_strcmp                      \
index 35d32f94bccfb77d8bd7ff19ef551b700a76e076..88934fc64902ed205b1a10e707ea2be6a446f183 100644 (file)
@@ -26,9 +26,7 @@ or obtained by writing to the Free Software Foundation, Inc.,
 #define _FOO_H_ 1
 
 /* config.h is necessary for the fortran name mangling */
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 /* csub is an extremely useful subroutine that
  * returns the argument multiplied by two :-)
index cf91d5ada2db3ba990dab11d9602c735c80a0189..09f0dce588bcb63739ea006585986ee7453eb6bf 100644 (file)
@@ -26,9 +26,7 @@ or obtained by writing to the Free Software Foundation, Inc.,
 #define _FOO_H_ 1
 
 /* config.h is necessary for the fortran name mangling */
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 /* csub is an extremely useful subroutine that
  * returns the argument multiplied by two :-)