MSVC: fix winansi.c compile errors
commite4ce1bbe46cd2020cf28a63dcb12200bb2ea4977
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Jan 2012 20:30:09 +0000 (5 14:30 -0600)
tree6f1b982d105f8bee8d02a40530854dbd3cab8848
parent08277cbc0014e6475a18feaaa15105558b2877ad
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