winansi: simplify loading the GetCurrentConsoleFontEx() function
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 13 Jun 2019 11:49:46 +0000 (04:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jun 2019 16:34:16 +0000 (09:34 -0700)
commit4fa42df972dc40fa3b50195ace838f2269da977a
tree619a55c09293789b6cc961b8f28568a861a0c2cd
parent08e0450690b8f4aa0f51d8c096520817f96de3dd
winansi: simplify loading the GetCurrentConsoleFontEx() function

We introduced helper macros to simplify loading functions dynamically.
Might just as well use them.

This also side-steps a compiler warning when building with GCC v8.x: it
would complain about casting between incompatible function pointers.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/winansi.c