Undef MIN and MAX before defining them, to avoid warnings on certain

platforms.
This commit is contained in:
Guido van Rossum 2002-07-13 14:31:51 +00:00
parent a4b4c3bf05
commit b6d29b7856

View 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))