summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-27 01:01:07 +0000
committerPaul Smith <psmith@gnu.org>2005-06-27 01:01:07 +0000
commitda1b137e389365ddfb9d16b3d6761cf1a3986e0b (patch)
tree14a9a1f8b975eaae55a686ff2dc6d602c201b2aa /make.h
parentd6a7894d3a6bdb45def58b2fdfb0629233f4f38b (diff)
downloadgunmake-da1b137e389365ddfb9d16b3d6761cf1a3986e0b.tar.gz
Fix strerror() handling for systems which set ANSI_STRING.
Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function.
Diffstat (limited to 'make.h')
-rw-r--r--make.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/make.h b/make.h
index 55682d8..b772d77 100644
--- a/make.h
+++ b/make.h
@@ -276,16 +276,15 @@ extern void bzero PARAMS ((char *, int));
extern void bcopy PARAMS ((const char *b1, char *b2, int));
# endif
-#endif /* ANSI_STRING. */
-#undef ANSI_STRING
-
/* SCO Xenix has a buggy macro definition in <string.h>. */
#undef strerror
-
-#if !defined(ANSI_STRING) && !defined(__DECC)
+#if !defined(__DECC)
extern char *strerror PARAMS ((int errnum));
#endif
+#endif /* !ANSI_STRING. */
+#undef ANSI_STRING
+
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif