mp_msg: Support colors on cygwin

A cygwin mpv will usually run inside mintty, and even if it were to be run
in a regular console window, the cygwin dll emulates ANSI escapes.
This commit is contained in:
Diogo Franco (Kovensky) 2013-07-24 23:59:05 -03:00
parent 3f04bf2722
commit 2c07cb0036
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static void set_msg_color(FILE* stream, int lev)
#endif
if (mp_msg_docolor())
{
#ifdef _WIN32
#if defined(_WIN32) && !defined(__CYGWIN__)
HANDLE *wstream = stream == stderr ? hSTDERR : hSTDOUT;
if (c == -1)
c = 7;