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:
James Anderson 2014-05-29 11:55:21 -07:00
parent b8d4895bd5
commit c9b6779729

View File

@ -14,7 +14,12 @@
#endif
#ifndef _UNISTD_H
#include <unistd.h>
#if defined(_MSC_VER)
#include <io.h>
#define _UNISTD_H
#else
#include <unistd.h>
#endif
#endif