Skip to content

Commit b6d29b7

Browse files
committed
Undef MIN and MAX before defining them, to avoid warnings on certain
platforms.
1 parent a4b4c3b commit b6d29b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Objects/longobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,8 @@ long_lshift(PyObject *v, PyObject *w)
20032003

20042004
/* Bitwise and/xor/or operations */
20052005

2006+
#undef MIN
2007+
#undef MAX
20062008
#define MAX(x, y) ((x) < (y) ? (y) : (x))
20072009
#define MIN(x, y) ((x) > (y) ? (y) : (x))
20082010

0 commit comments

Comments
 (0)