diff options
Diffstat (limited to 'src/common.cc')
-rw-r--r-- | src/common.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.cc b/src/common.cc index d26783a1..4516ec37 100644 --- a/src/common.cc +++ b/src/common.cc @@ -88,11 +88,13 @@ Result ReadFile(string_view filename, std::vector<uint8_t>* out_data) { void InitStdio() { #if COMPILER_IS_MSVC int result = _setmode(_fileno(stdout), _O_BINARY); - if (result == -1) + if (result == -1) { perror("Cannot set mode binary to stdout"); + } result = _setmode(_fileno(stderr), _O_BINARY); - if (result == -1) + if (result == -1) { perror("Cannot set mode binary to stderr"); + } #endif } |