]> granicus.if.org Git - python/commitdiff
Undef MIN and MAX before defining them, to avoid warnings on certain
authorGuido van Rossum <guido@python.org>
Sat, 13 Jul 2002 14:31:51 +0000 (14:31 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 13 Jul 2002 14:31:51 +0000 (14:31 +0000)
platforms.

Objects/longobject.c

index 89fc8b4391e659d23674f151499e259a0f619b27..7f94a622ffb0c4f14135887d5a32f2ca1d5ebc87 100644 (file)
@@ -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))