Changeset 889


Ignore:
Timestamp:
31/08/2006 23:31:10 (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 (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/common/Guards.h

    r888 r889  
    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.