diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-13 01:09:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-13 01:09:15 +0000 |
commit | b6d265e347a53be00d84f23c236e424b3620ba10 (patch) | |
tree | 8cb05d618a714d38a5e1e1e9316d434db66cba59 | |
parent | 4de61e5f98167f9646cc8a652bbaaaf240bfed75 (diff) | |
download | coreutils-b6d265e347a53be00d84f23c236e424b3620ba10.tar.xz |
* src/od.c (MIN, MAX): Remove definitions.
* src/sys2.h (MIN, MAX): Define here instead.
-rw-r--r-- | src/od.c | 8 | ||||
-rw-r--r-- | src/sys2.h | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -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 |