summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 22:31:10 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 22:31:10 +0000
commitd917c007a871e3570cf94bba6577e04272a20625 (patch)
tree1fbfca95b075646a85b79bcc87a1d639d313ca14
parent472d823f46324a84ece80c97b5fd41744b937d0d (diff)
Add O_BINARY to default flags, since most files opened this way should
be opened in binary mode on Win32 (refs #3)
-rw-r--r--lib/common/Guards.h2
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: