libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 13/25] syntax-check: fix violations and re-enable sc_prohibit_hav


From: Gary V. Vaughan
Subject: [PATCH 13/25] syntax-check: fix violations and re-enable sc_prohibit_have_config_h.
Date: Tue, 15 Nov 2011 19:53:51 +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 <address@hidden>
---
 cfg.mk              |    1 -
 tests/f77demo/foo.h |    2 --
 tests/fcdemo/foo.h  |    2 --
 3 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index baaea4f..09fa25f 100644
--- 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                      \
diff --git a/tests/f77demo/foo.h b/tests/f77demo/foo.h
index 35d32f9..88934fc 100644
--- a/tests/f77demo/foo.h
+++ b/tests/f77demo/foo.h
@@ -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 :-)
diff --git a/tests/fcdemo/foo.h b/tests/fcdemo/foo.h
index cf91d5a..09f0dce 100644
--- a/tests/fcdemo/foo.h
+++ b/tests/fcdemo/foo.h
@@ -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 :-)
-- 
1.7.7.3

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]