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/csoaa.cc')
-rw-r--r--vowpalwabbit/csoaa.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/vowpalwabbit/csoaa.cc b/vowpalwabbit/csoaa.cc
index 72db9c5d..0e97d7ac 100644
--- a/vowpalwabbit/csoaa.cc
+++ b/vowpalwabbit/csoaa.cc
@@ -1191,11 +1191,7 @@ namespace LabelDict {
for (size_t i=0; i<all.final_prediction_sink.size(); i++) {
int f = all.final_prediction_sink[i];
ssize_t t;
-#ifdef _WIN32
- t = _write(f, temp, 1);
-#else
- t = write(f, temp, 1);
-#endif
+ t = io_buf::write_file_or_socket(f, temp, 1);
if (t != 1)
std::cerr << "write error" << std::endl;
}