Avoid conflicting _expand functions in PIL & MINGW

fixes #538
This commit is contained in:
Alex Clark 2014-03-17 10:50:58 -04:00
parent d2dfe3b137
commit 1c4dc75fab
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@ Changelog (Pillow)
2.4.0 (unreleased)
------------------
- Avoid conflicting _expand functions in PIL & MINGW, fixes #538
[aclark]
- Merge from Philippe Lagadecs OleFileIO_PL fork
[vadmium]

View File

@ -846,7 +846,7 @@ _crop(ImagingObject* self, PyObject* args)
}
static PyObject*
_expand(ImagingObject* self, PyObject* args)
_expand_image(ImagingObject* self, PyObject* args)
{
int x, y;
int mode = 0;
@ -2996,7 +2996,7 @@ static struct PyMethodDef methods[] = {
{"crackcode", (PyCFunction)_crackcode, 1},
#endif
{"crop", (PyCFunction)_crop, 1},
{"expand", (PyCFunction)_expand, 1},
{"expand", (PyCFunction)_expand_image, 1},
{"filter", (PyCFunction)_filter, 1},
{"histogram", (PyCFunction)_histogram, 1},
#ifdef WITH_MODEFILTER