Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Release/include/cpprest/filestream.h
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ class basic_file_buffer : public details::streambuf_state_manager<_CharType>
const utility::string_t& _Filename,
std::ios_base::openmode _Mode = std::ios_base::out,
#ifdef _WIN32
int _Prot = (int)std::ios_base::_Openprot
int _Prot = _SH_DENYNO
#else
int _Prot = 0 // unsupported on Linux, for now
#endif
Expand Down Expand Up @@ -1012,7 +1012,7 @@ class file_stream
static pplx::task<streams::basic_istream<_CharType>> open_istream(const utility::string_t& file_name,
std::ios_base::openmode mode = std::ios_base::in,
#ifdef _WIN32
int prot = (int)std::ios_base::_Openprot
int prot = _SH_DENYNO
#else
int prot = 0
#endif
Expand All @@ -1037,7 +1037,7 @@ class file_stream
static pplx::task<streams::basic_ostream<_CharType>> open_ostream(const utility::string_t& file_name,
std::ios_base::openmode mode = std::ios_base::out,
#ifdef _WIN32
int prot = (int)std::ios_base::_Openprot
int prot = _SH_DENYNO
#else
int prot = 0
#endif
Expand Down
2 changes: 1 addition & 1 deletion Release/tests/functional/streams/fstreambuf_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using namespace Windows::Storage;
#endif

#ifdef _WIN32
#define DEFAULT_PROT (int)std::ios_base::_Openprot
#define DEFAULT_PROT _SH_DENYNO
#else
#define DEFAULT_PROT 0
#define _SH_DENYRW 0x20
Expand Down
2 changes: 1 addition & 1 deletion Release/tests/functional/streams/istream_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace Windows::Storage;
#endif

#ifdef _WIN32
#define DEFAULT_PROT (int)std::ios_base::_Openprot
#define DEFAULT_PROT _SH_DENYNO
#else
#define DEFAULT_PROT 0
#endif
Expand Down
2 changes: 1 addition & 1 deletion Release/tests/functional/streams/stdstream_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace Windows::Storage;
#endif

#ifdef _WIN32
#define DEFAULT_PROT (int)std::ios_base::_Openprot
#define DEFAULT_PROT _SH_DENYNO
#else
#define DEFAULT_PROT 0
#endif
Expand Down