| Index: util/file/file_io.h
|
| diff --git a/util/file/file_io.h b/util/file/file_io.h
|
| index c3120c9639875cff165c4b2acca0c5fd072fc232..0be3563fd58d81cb1d121e50685a1d1880fbdfae 100644
|
| --- a/util/file/file_io.h
|
| +++ b/util/file/file_io.h
|
| @@ -26,6 +26,27 @@
|
| #include "util/win/scoped_handle.h"
|
| #endif
|
|
|
| +//! \file
|
| +
|
| +#if defined(OS_POSIX) || DOXYGEN
|
| +
|
| +//! \brief A `PLOG()` macro usable for standard input/output error conditions.
|
| +//!
|
| +//! The `PLOG()` macro uses `errno` on POSIX and is appropriate to report
|
| +//! errors from standard input/output functions. On Windows, `PLOG()` uses
|
| +//! `GetLastError()`, and cannot be used to report errors from standard
|
| +//! input/output functions. This macro uses `PLOG()` when appropriate for
|
| +//! standard I/O functions, and `LOG()` otherwise.
|
| +#define STDIO_PLOG(x) PLOG(x)
|
| +
|
| +#else
|
| +
|
| +#define STDIO_PLOG(x) LOG(x)
|
| +#define fseeko(file, offset, whence) _fseeki64(file, offset, whence)
|
| +#define ftello(file) _ftelli64(file)
|
| +
|
| +#endif
|
| +
|
| namespace base {
|
| class FilePath;
|
| } // namespace base
|
|
|