diff options
author | Jim Meyering <jim@meyering.net> | 1995-06-24 21:10:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-06-24 21:10:12 +0000 |
commit | 86671a4ed09283236daad34900e55a9c7de1d57d (patch) | |
tree | efcfd25e0d69bfd3f72b46057ae13ece7e9a5a38 /src/uniq.c | |
parent | 5cd7a18539b3cab460ea39f85a928ae843703feb (diff) | |
download | coreutils-86671a4ed09283236daad34900e55a9c7de1d57d.tar.xz |
Undefine min and/or max before defining to avoid redefinition warning
on systems.
Diffstat (limited to 'src/uniq.c')
-rw-r--r-- | src/uniq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uniq.c b/src/uniq.c index 5897c7166..8f86e978f 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -30,6 +30,8 @@ #include "version.h" #include "error.h" +/* Undefine, to avoid warning about redefinition on some systems. */ +#undef min #define min(x, y) ((x) < (y) ? (x) : (y)) static char *find_field (); |