MSVC: fix winansi.c compile errors
commit6515e75c549aa9ac70d3f59b6fba28da35a0b72e
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 30 Mar 2012 18:42:39 +0000 (30 13:42 -0500)
tree72696b4bad269ceaab683a2f5a62bd9bc489d5fc
parentd8c31c631e3af7e1f4dd30c8cc9baddc77b11f2f
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