Include zlib.h before Imaging.h

Fixes a msvc compile error because various types get redefined
This commit is contained in:
Christoph Gohlke 2013-03-13 17:27:24 -07:00
parent 062397c0af
commit 0b8c870d0b

View File

@ -74,6 +74,10 @@
#include "Python.h"
#ifdef HAVE_LIBZ
#include "zlib.h"
#endif
#include "Imaging.h"
#include "py3.h"
@ -3415,7 +3419,6 @@ setup_module(PyObject* m) {
#endif
#ifdef HAVE_LIBZ
#include "zlib.h"
/* zip encoding strategies */
PyModule_AddIntConstant(m, "DEFAULT_STRATEGY", Z_DEFAULT_STRATEGY);
PyModule_AddIntConstant(m, "FILTERED", Z_FILTERED);