Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vowpalwabbit/bs.cc')
-rw-r--r--vowpalwabbit/bs.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/vowpalwabbit/bs.cc b/vowpalwabbit/bs.cc
index aabe326a..035a5e28 100644
--- a/vowpalwabbit/bs.cc
+++ b/vowpalwabbit/bs.cc
@@ -121,11 +121,7 @@ namespace BS {
ss << temp;
ss << '\n';
ssize_t len = ss.str().size();
-#ifdef _WIN32
- ssize_t t = _write(f, ss.str().c_str(), (unsigned int)len);
-#else
- ssize_t t = write(f, ss.str().c_str(), (unsigned int)len);
-#endif
+ ssize_t t = io_buf::write_file_or_socket(f, ss.str().c_str(), (unsigned int)len);
if (t != len)
cerr << "write error" << endl;
}