diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 15:22:34 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 15:22:34 -0800 |
commit | ba01e9d785457898d873d6c8ec8bc1965fe4ff28 (patch) | |
tree | 99a3172a81506b150c963135ce1d264034222265 /lib-src/ebrowse.c | |
parent | 08c690977a76a2a899bfe42056e9ae3a7efebcb3 (diff) | |
download | emacs-ba01e9d785457898d873d6c8ec8bc1965fe4ff28.tar.gz |
[ChangeLog]
* lib/min-max.h: New file, for "min" and "max".
[lib-src/ChangeLog]
New file "lib/min-max.h".
* ebrowse.c (min, max): Define them by including <min-max.h>
instead of defining it ourselves.
* pop.c (min): Likewise.
Diffstat (limited to 'lib-src/ebrowse.c')
-rw-r--r-- | lib-src/ebrowse.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 2cb656ae53a..f2894d5a0c2 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c @@ -41,12 +41,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define streq(X, Y) (*(X) == *(Y) && strcmp ((X) + 1, (Y) + 1) == 0) -/* The ubiquitous `max' and `min' macros. */ - -#ifndef max -#define max(X, Y) ((X) > (Y) ? (X) : (Y)) -#define min(X, Y) ((X) < (Y) ? (X) : (Y)) -#endif +#include <min-max.h> /* Files are read in chunks of this number of bytes. */ |