diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 20:23:34 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 20:23:34 +0000 |
commit | e40140f8af64b1ddf5941182b0d367eeb6567fcf (patch) | |
tree | f273d5e6e18498ea95d72f524607ea482ee3b15f /lib/common/FileStream.h | |
parent | b70745a82a5a77d87740754fc5e93f51480bbd2c (diff) |
Remove #ifdef WIN32 as we now define O_BINARY to 0 on Unixes, so
the same code can be used for both.
Diffstat (limited to 'lib/common/FileStream.h')
-rw-r--r-- | lib/common/FileStream.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/common/FileStream.h b/lib/common/FileStream.h index e3ab9f46..5f9b31bb 100644 --- a/lib/common/FileStream.h +++ b/lib/common/FileStream.h @@ -32,22 +32,14 @@ class FileStream : public IOStream { public: FileStream(const std::string& rFilename, -#ifdef WIN32 int flags = (O_RDONLY | O_BINARY), -#else - int flags = O_RDONLY, -#endif int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); // Ensure that const char * name doesn't end up as a handle // on Windows! FileStream(const char *pFilename, -#ifdef WIN32 int flags = (O_RDONLY | O_BINARY), -#else - int flags = O_RDONLY, -#endif int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); FileStream(tOSFileHandle FileDescriptor); |