summaryrefslogtreecommitdiff
path: root/src/WinConsoleFile.cc
Commit message (Collapse)AuthorAgeFilesLines
* Do not use a virtual varargs functionNils Maier2013-03-021-11/+10
| | | | This stuff breaks in some compiler (configurations)
* Console color outputTatsuhiro Tsujikawa2012-12-081-0/+5
| | | | Log level and download result string is now colored.
* Handle the case when MINGW32 vsnprintf returns -1Tatsuhiro Tsujikawa2012-06-241-2/+6
| | | | | MINGW32 vsnprintf returns -1 if output is truncated. Increased buffer for vsnprintf in WinConsoleFile and fmt.
* Added global::cerr. windows.h now included from common.hTatsuhiro Tsujikawa2011-08-101-14/+11
| | | | | | | 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.
* Use global::cout to output string to stdout.Tatsuhiro Tsujikawa2011-08-091-0/+105
In MinGW32 build, global::cout is WinConsoleFile. When outputing to console, it uses WriteConsoleW, so Unicode characters are written. Fixed memory leak in WChar<->MultiByte conversion functions. The portion of code which uses std::cout is rewritten to use global::cout.