Ignore:
Timestamp:
26/09/2008 21:23:34 (4 years ago)
Author:
chris
Message:

Remove #ifdef WIN32 as we now define O_BINARY to 0 on Unixes, so
the same code can be used for both.

File:
1 edited

Legend:

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

    r2275 r2298  
    3333public: 
    3434        FileStream(const std::string& rFilename,  
    35 #ifdef WIN32 
    3635                int flags = (O_RDONLY | O_BINARY), 
    37 #else 
    38                 int flags = O_RDONLY, 
    39 #endif 
    4036                int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); 
    4137 
     
    4440 
    4541        FileStream(const char *pFilename,  
    46 #ifdef WIN32 
    4742                int flags = (O_RDONLY | O_BINARY), 
    48 #else 
    49                 int flags = O_RDONLY, 
    50 #endif 
    5143                int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); 
    5244 
Note: See TracChangeset for help on using the changeset viewer.