diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-10 00:38:48 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-10 00:38:48 +0900 |
| commit | 97f34ab6682d83d9a0265a4291b44eaf45703493 (patch) | |
| tree | d91197441426fc303e4803c859c6b784c848d5bc /src/WinConsoleFile.h | |
| parent | a10cda2f17916895d8c6bc3cd69a360947017771 (diff) | |
Added global::cerr. windows.h now included from common.h
We replaced most of std::cerr with global::cerr. windows.h is now
included from common.h. Before including it, we define WINVER. We
renamed some variable name because some macros in windows.h collide
with them.
Diffstat (limited to 'src/WinConsoleFile.h')
| -rw-r--r-- | src/WinConsoleFile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WinConsoleFile.h b/src/WinConsoleFile.h index 56d750eb..d3c16d25 100644 --- a/src/WinConsoleFile.h +++ b/src/WinConsoleFile.h @@ -42,12 +42,13 @@ namespace aria2 { // This is a wrapper class for WriteConsoleW class WinConsoleFile:public OutputFile { public: - WinConsoleFile(); + WinConsoleFile(DWORD stdHandle); virtual ~WinConsoleFile(); virtual size_t write(const char* str); virtual int printf(const char* format, ...); virtual int flush(); private: + DWORD stdHandle_; // Don't allow copying WinConsoleFile(const WinConsoleFile&); WinConsoleFile& operator=(const WinConsoleFile&); |
