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> #include <tiff.h>
#endif #endif
#ifndef _UNISTD_H #ifndef _MSC_VER
#include <unistd.h> #ifndef _UNISTD_H
#include <unistd.h>
#endif
#endif #endif
#ifndef min #ifndef min
#define min(x,y) (( x > y ) ? y : x ) #define min(x,y) (( x > y ) ? y : x )
#define max(x,y) (( x < y ) ? y : x ) #define max(x,y) (( x < y ) ? y : x )