summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-13 01:09:15 +0000
committerJim Meyering <jim@meyering.net>1999-04-13 01:09:15 +0000
commitb6d265e347a53be00d84f23c236e424b3620ba10 (patch)
tree8cb05d618a714d38a5e1e1e9316d434db66cba59
parent4de61e5f98167f9646cc8a652bbaaaf240bfed75 (diff)
downloadcoreutils-b6d265e347a53be00d84f23c236e424b3620ba10.tar.xz
* src/od.c (MIN, MAX): Remove definitions.
* src/sys2.h (MIN, MAX): Define here instead.
-rw-r--r--src/od.c8
-rw-r--r--src/sys2.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/od.c b/src/od.c
index b6906f413..d72ffc11d 100644
--- a/src/od.c
+++ b/src/od.c
@@ -46,14 +46,6 @@ typedef double LONG_DOUBLE;
# include <values.h>
#endif
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
-#ifndef MIN
-# define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
/* The default number of input bytes per output line. */
#define DEFAULT_BYTES_PER_BLOCK 16
diff --git a/src/sys2.h b/src/sys2.h
index b1d25f838..a58e94826 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -274,3 +274,11 @@ char *base_name PARAMS ((char const *));
close_stdout (); \
exit (EXIT_SUCCESS); \
break;
+
+#ifndef MAX
+# define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
+#ifndef MIN
+# define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif