From Andreas Ekstrand, fix for Windows

This commit is contained in:
Robert Osfield
2006-06-26 10:39:38 +00:00
parent f8644d08e5
commit c46560e478

View File

@@ -17,7 +17,11 @@ ESRIShapeParser::ESRIShapeParser( const std::string fileName ):
int fd = 0;
if( !fileName.empty() )
{
#ifdef WIN32
if( (fd = open( fileName.c_str(), O_RDONLY | O_BINARY )) <= 0 )
#else
if( (fd = open( fileName.c_str(), O_RDONLY )) <= 0 )
#endif
{
perror( fileName.c_str() );
return ;