mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-06 21:40:09 +03:00
I encountered a build error building Pillow on Windows with MSVS
The fix I found was to use io.h when building with msvc. unistd.h should be for unix or mingw builds.
This commit is contained in:
parent
b8d4895bd5
commit
c9b6779729
|
@ -14,7 +14,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _UNISTD_H
|
#ifndef _UNISTD_H
|
||||||
#include <unistd.h>
|
#if defined(_MSC_VER)
|
||||||
|
#include <io.h>
|
||||||
|
#define _UNISTD_H
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user