Chromium Code Reviews| Index: runtime/bin/file_win.cc |
| =================================================================== |
| --- runtime/bin/file_win.cc (revision 14903) |
| +++ runtime/bin/file_win.cc (working copy) |
| @@ -2,15 +2,15 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| -#include "bin/file.h" |
|
Ivan Posva
2012/11/15 07:43:17
Where did the include of file.h go? And how can th
gram
2012/11/15 21:16:50
Not sure what happened here; it is restored now.
|
| - |
| #include <fcntl.h> |
| #include <io.h> |
| #include <stdio.h> |
| #include <string.h> |
| #include <sys/stat.h> |
| +#include "bin/platform.h" |
|
siva
2012/11/15 18:46:48
Why does this need to be included here now, it was
gram
2012/11/15 21:16:50
Removed
|
| #include "bin/builtin.h" |
| +#include "bin/log.h" |
| class FileHandle { |
| public: |
| @@ -39,7 +39,7 @@ |
| ASSERT(handle_->fd() >= 0); |
| int err = close(handle_->fd()); |
| if (err != 0) { |
| - fprintf(stderr, "%s\n", strerror(errno)); |
| + Log::PrintErr("%s\n", strerror(errno)); |
| } |
| handle_->set_fd(kClosedFd); |
| } |