Issue #697. On MSVC 2012 builds <unistd.h> is not required.

This commit is contained in:
James Anderson 2014-06-09 11:39:40 -07:00 committed by wiredfool
parent 841582fa26
commit 5ceb3ca875

View File

@ -13,11 +13,12 @@
#include <tiff.h>
#endif
#ifndef _UNISTD_H
#include <unistd.h>
#ifndef _MSC_VER
#ifndef _UNISTD_H
#include <unistd.h>
#endif
#endif
#ifndef min
#define min(x,y) (( x > y ) ? y : x )
#define max(x,y) (( x < y ) ? y : x )