Undef PySlice_GetIndicesEx, see https://bugs.python.org/issue29943

This commit is contained in:
wiredfool 2017-04-19 12:56:13 -07:00
parent 2ac4f79e8c
commit c3717da45a
3 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "Imaging.h"
#include "py3.h"
#include <webp/encode.h>
#include <webp/decode.h>

View File

@ -9,6 +9,11 @@
#include "Python.h"
/* Workaround issue #2479 */
#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
#undef PySlice_GetIndicesEx
#endif
/* Check that we have an ANSI compliant compiler */
#ifndef HAVE_PROTOTYPES
#error Sorry, this library requires support for ANSI prototypes.

1
path.c
View File

@ -27,6 +27,7 @@
#include "Python.h"
#include "Imaging.h"
#include <math.h>