MSVC: fix winansi.c compile errors
commita894c9a895f471b29c94429212ba6cf1bf895073
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 2 Nov 2011 20:13:17 +0000 (2 15:13 -0500)
tree82eb463a51abf1bd088b3a72a45c4c534562f9f6
parent26469e3967ac3f31c756da3821bd657c380c22ab
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