Skip to content

Commit

Permalink
COMPAT: PySlice_GetIndicesEx is a macro on PyPy (pandas-dev#16194)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip authored and jreback committed May 2, 2017
1 parent 49ca1ef commit 2471967
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandas/_libs/src/compat_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ the macro, which restores compat.
https://bugs.python.org/issue29943
*/

#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
#undef PySlice_GetIndicesEx
#ifndef PYPY_VERSION
# if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
# undef PySlice_GetIndicesEx
# endif
#endif

PANDAS_INLINE int slice_get_indices(PyObject *s,
Expand Down

0 comments on commit 2471967

Please sign in to comment.