mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Undef PySlice_GetIndicesEx, see https://bugs.python.org/issue29943
This commit is contained in:
parent
2ac4f79e8c
commit
c3717da45a
1
_webp.c
1
_webp.c
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user