From 70c4245a51ed525c19720b91b76d1cac1f6c1476 Mon Sep 17 00:00:00 2001 From: mattip Date: Tue, 2 May 2017 07:42:33 +0300 Subject: [PATCH] COMPAT: PySlice_GetIndicesEx is a macro on PyPy --- pandas/_libs/src/compat_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/src/compat_helper.h b/pandas/_libs/src/compat_helper.h index 8f86bb3f8e62f..73787023c27b7 100644 --- a/pandas/_libs/src/compat_helper.h +++ b/pandas/_libs/src/compat_helper.h @@ -26,7 +26,7 @@ the macro, which restores compat. https://bugs.python.org/issue29943 */ -#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) +#if ! defined(PYPY_VERSION) && PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) #undef PySlice_GetIndicesEx #endif