summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2001-10-08 22:39:06 +0000
committerAndrew Innes <andrewi@gnu.org>2001-10-08 22:39:06 +0000
commit152180e34e42cff9082d73954cb676557b60be23 (patch)
tree61f427d122fd5c18b8189936b88ce304b1583133 /src
parent166253cb39ccddfdd1621b4ec4864685302a8a0a (diff)
downloademacs-152180e34e42cff9082d73954cb676557b60be23.tar.gz
[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;
/* The ubiquitous min and max macros. */
+#ifdef max
+#undef max
+#undef min
+#endif
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))