MSVC: fix winansi.c compile errors
commita2034877e4b55405b49c1b0deaa058bd27919a87
authorKarsten Blees <blees@dcon.de>
Thu, 6 Oct 2011 17:40:56 +0000 (6 17:40 +0000)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:41:10 +0000 (15 09:41 +0200)
tree0334406115e022f45272f558c85b37a6805ec743
parentdec299fcca3adcc5dce5c7f3e9b82b5906f4c833
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