MSVC: fix winansi.c compile errors
commit0f5e78091ad4bd338372d7cb493a7055024ae653
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:31 +0000 (15 18:05 +0100)
tree6d10c5b0cb4130405d2443bea2114081d2f2dd8a
parent535fce56f714e2f760731faea00944b1d526ca23
MSVC: fix winansi.c compile errors

Some constants (such as LF_FACESIZE) are undefined with -DNOGDI (set in the
Makefile), and CONSOLE_FONT_INFOEX is available in MSVC, but not in MinGW.

Cast FARPROC to PGETCURRENTCONSOLEFONTEX to suppress MSVC compiler warning.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/winansi.c