Eina: fix colors messages in MSYS2
authorVincent Torri <vincent.torri@gmail.com>
Fri, 16 Sep 2016 12:27:30 +0000 (14:27 +0200)
committerTom Hacohen <tom@stosb.com>
Fri, 16 Sep 2016 13:48:33 +0000 (14:48 +0100)
commit79fadd184fd5e61c89690ffd30b98831454fbe08
tree7f814924304adce90246358506b43b845ff7ec0c
parentbaa06ebf15c63577efaef4c81cd28e892bdd4c55
Eina: fix colors messages in MSYS2

With MSYS1 or cygwin 1.5, or DOS console, the display is done by redirecting
stdout and al. So to change the colors, the Win32 API of the console must be
used.
On the contrary, the terminals based on mintty (like cygwin 1.8 terminal or MSYS2)
the redirection is done with pipes, so the Win32 API of the console does not
work when changing the colors and we can use the POSIX colors of printf.

This patch is fixing the eina code which alwayss use the Win32 API of the console
on Windows, even if mintty-based terminals are used
src/lib/eina/eina_log.c