Changeset 986


Ignore:
Timestamp:
12/10/2006 21:54:28 (5 years ago)
Author:
chris
Message:
  • Add O_BINARY to default flags, since most files opened this way should

be opened in binary mode on Win32

File:
1 edited

Legend:

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

    r456 r986  
    2525#include "MemLeakFindOn.h" 
    2626 
    27 template <int flags = O_RDONLY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)> 
     27template <int flags = O_RDONLY | O_BINARY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)> 
    2828class FileHandleGuard 
    2929{ 
Note: See TracChangeset for help on using the changeset viewer.