MSVC: fix winansi.c compile errors
commit72eaeef25a084a075c17a844ddbddd76b25e8ac2
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 May 2012 15:49:31 +0000 (3 10:49 -0500)
tree834e705d45ebbff9620aa2bff48a932a1357a058
parent5bf996dffd3bdf2cab5f2064c8c5fda7de11d35f
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