mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-02 06:12:41 -06:00
.Core: Cerr changes
git-svn-id: svn://ultimatepp.org/upp/trunk@6381 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e9060567d9
commit
7ba67df1d3
1 changed files with 2 additions and 6 deletions
|
|
@ -1267,15 +1267,11 @@ class CerrStream : public Stream {
|
|||
putc(w, stderr);
|
||||
#endif
|
||||
}
|
||||
#ifdef PLATFORM_POSIX
|
||||
virtual void _Put(const void *data, dword size) {
|
||||
#ifdef PLATFORM_WIN32
|
||||
static HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
|
||||
dword dummy;
|
||||
WriteFile(h, data, size, &dummy, NULL);
|
||||
#else
|
||||
fwrite(data, 1, size, stderr);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
virtual bool IsOpen() const { return true; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue