From 4e160cd981c104835f6e959883118d8c68c3dc9d Mon Sep 17 00:00:00 2001 From: wiredfool Date: Wed, 19 Apr 2017 13:27:59 -0700 Subject: [PATCH] Disable undef on pypy --- libImaging/ImPlatform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libImaging/ImPlatform.h b/libImaging/ImPlatform.h index 71c2e0d8e..7b42510d4 100644 --- a/libImaging/ImPlatform.h +++ b/libImaging/ImPlatform.h @@ -10,7 +10,7 @@ #include "Python.h" /* Workaround issue #2479 */ -#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) +#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) && !defined(PYPY_VERSION) #undef PySlice_GetIndicesEx #endif