diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:31:10 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:31:10 +0000 |
commit | d917c007a871e3570cf94bba6577e04272a20625 (patch) | |
tree | 1fbfca95b075646a85b79bcc87a1d639d313ca14 /lib/common/Guards.h | |
parent | 472d823f46324a84ece80c97b5fd41744b937d0d (diff) |
Add O_BINARY to default flags, since most files opened this way should
be opened in binary mode on Win32 (refs #3)
Diffstat (limited to 'lib/common/Guards.h')
-rw-r--r-- | lib/common/Guards.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/Guards.h b/lib/common/Guards.h index 17d73b3f..b1bca0fa 100644 --- a/lib/common/Guards.h +++ b/lib/common/Guards.h @@ -24,7 +24,7 @@ #include "MemLeakFindOn.h" -template <int flags = O_RDONLY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)> +template <int flags = O_RDONLY | O_BINARY, int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)> class FileHandleGuard { public: |