Changeset 3012 for box/trunk


Ignore:
Timestamp:
08/10/2011 13:42:06 (8 months ago)
Author:
chris
Message:

Recent Cygwin versions of MinGW now define O_BINARY as well, also in
fcntl.h, so include it if we can find it, and only define O_BINARY if
it turns out to be missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/BoxPlatform.h

    r2876 r3012  
    161161 
    162162// Define O_BINARY for Unix compatibility with Windows :-) 
    163 // MSVC 2010 defines in in fcntl.h, which is probably not included by this 
    164 // point, so include it now so that we can detect if we need O_BINARY 
    165 #ifdef _MSC_VER 
     163// MSVC 2010 and newer MinGW define this in fcntl.h, which is probably 
     164// not included by this point, so include it now so that we can detect 
     165// if we need O_BINARY 
     166 
     167#ifdef HAVE_FCNTL_H 
    166168#       include <fcntl.h> 
    167169#endif 
Note: See TracChangeset for help on using the changeset viewer.