Changeset 14752

Show
Ignore:
Timestamp:
06/22/08 14:35:16 (5 months ago)
Author:
warmerdam
Message:

Use EOVERFLOW if defined otherwise use hardcoded likely values (#2437)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/gcore/gdalopeninfo.cpp

    r14309 r14752  
    9999             * when we do not have a real file with such a name. Under some 
    100100             * circumstances EINVAL reported instead of ENOENT in Windows 
    101              * (for filenames containing colon, e.g. "smth://name"). */ 
     101             * (for filenames containing colon, e.g. "smth://name").  
     102             * See also: #2437 */ 
    102103            else if( errno == 27 /* "File to large" */  
    103104                     || errno == ENOENT || errno == EINVAL 
    104                      || errno == 79 /* EOVERFLOW - value too large */ ) 
     105#ifdef EOVERFLOW 
     106                     || errno == EOVERFLOW 
     107#else 
     108                     || errno == 75 /* Linux EOVERFLOW */ 
     109                     || errno == 79 /* Solaris EOVERFLOW */  
     110#endif 
     111                     ) 
    105112            { 
    106113                fp = VSIFOpenL( pszFilename, "rb" );