summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-13 14:31:51 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-13 14:31:51 (GMT)
commitb6d29b7856d25e382a024139d6599962c02b404b (patch)
tree26384c2ad591e5651bcc7b4457e027c6b90d9c5c /Objects
parenta4b4c3bf0533a92a8cd7e45e667b95980f1f0c96 (diff)
downloadcpython-b6d29b7856d25e382a024139d6599962c02b404b.zip
cpython-b6d29b7856d25e382a024139d6599962c02b404b.tar.gz
cpython-b6d29b7856d25e382a024139d6599962c02b404b.tar.bz2
Undef MIN and MAX before defining them, to avoid warnings on certain
platforms.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 89fc8b4..7f94a62 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2003,6 +2003,8 @@ lshift_error:
/* Bitwise and/xor/or operations */
+#undef MIN
+#undef MAX
#define MAX(x, y) ((x) < (y) ? (y) : (x))
#define MIN(x, y) ((x) > (y) ? (y) : (x))