summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-06-24 21:10:12 +0000
committerJim Meyering <jim@meyering.net>1995-06-24 21:10:12 +0000
commit86671a4ed09283236daad34900e55a9c7de1d57d (patch)
treeefcfd25e0d69bfd3f72b46057ae13ece7e9a5a38 /src/cat.c
parent5cd7a18539b3cab460ea39f85a928ae843703feb (diff)
downloadcoreutils-86671a4ed09283236daad34900e55a9c7de1d57d.tar.xz
Undefine min and/or max before defining to avoid redefinition warning
on systems.
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cat.c b/src/cat.c
index de99b0dfd..ca9d87ac8 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -34,6 +34,8 @@
#include "version.h"
#include "error.h"
+/* Undefine, to avoid warning about redefinition on some systems. */
+#undef max
#define max(h,i) ((h) > (i) ? (h) : (i))
char *stpcpy ();