From aec0dda55a6751a8d927d3c4e9cb5558eafd8793 Mon Sep 17 00:00:00 2001 From: James Anderson Date: Mon, 9 Jun 2014 11:39:40 -0700 Subject: [PATCH] Issue #697. On MSVC 2012 builds is not required. --- libImaging/TiffDecode.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libImaging/TiffDecode.h b/libImaging/TiffDecode.h index 90fe3c9d4..70aa63628 100644 --- a/libImaging/TiffDecode.h +++ b/libImaging/TiffDecode.h @@ -13,11 +13,12 @@ #include #endif -#ifndef _UNISTD_H -#include +#ifndef _MSC_VER + #ifndef _UNISTD_H + #include + #endif #endif - #ifndef min #define min(x,y) (( x > y ) ? y : x ) #define max(x,y) (( x < y ) ? y : x )