aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes2001-10-08 22:39:06 +0000
committerAndrew Innes2001-10-08 22:39:06 +0000
commit152180e34e42cff9082d73954cb676557b60be23 (patch)
tree61f427d122fd5c18b8189936b88ce304b1583133 /src
parent166253cb39ccddfdd1621b4ec4864685302a8a0a (diff)
downloademacs-152180e34e42cff9082d73954cb676557b60be23.tar.gz
emacs-152180e34e42cff9082d73954cb676557b60be23.zip
[max]: Undef min and max before redefining them.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 69253fd5278..f86ae5e730c 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3078,5 +3078,9 @@ extern Lisp_Object Vdirectory_sep_char;
3078 3078
3079/* The ubiquitous min and max macros. */ 3079/* The ubiquitous min and max macros. */
3080 3080
3081#ifdef max
3082#undef max
3083#undef min
3084#endif
3081#define min(a, b) ((a) < (b) ? (a) : (b)) 3085#define min(a, b) ((a) < (b) ? (a) : (b))
3082#define max(a, b) ((a) > (b) ? (a) : (b)) 3086#define max(a, b) ((a) > (b) ? (a) : (b))