Fix mingw-w64 build
On Windows with mingw-w64, Pillow includes windows.h, and thus including Imaging.h would result in a name conflict of "TRANSPARENT", which windows.h #defines but overviewer.h wants to use as enum. For the record, this used to not be broken back when I initially fixed Pillow for mingw-w64, so the change got somewhere introduced between then and now.
This commit is contained in:
@@ -32,6 +32,8 @@
|
|||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <numpy/arrayobject.h>
|
#include <numpy/arrayobject.h>
|
||||||
#include <Imaging.h>
|
#include <Imaging.h>
|
||||||
|
/* Fix Pillow on mingw-w64 which includes windows.h in Imaging.h */
|
||||||
|
#undef TRANSPARENT
|
||||||
|
|
||||||
/* like (a * b + 127) / 255), but much faster on most platforms
|
/* like (a * b + 127) / 255), but much faster on most platforms
|
||||||
from PIL's _imaging.c */
|
from PIL's _imaging.c */
|
||||||
|
|||||||
Reference in New Issue
Block a user