From: Eli Zaretskii Date: Thu, 21 Apr 2022 10:53:57 +0000 (+0300) Subject: Unbreak build with MinGW64. X-Git-Tag: emacs-29.0.90~1931^2~376 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b9596fff8d2f458060703eb59def27b1e59a8c9;p=emacs.git Unbreak build with MinGW64. * src/w32.c (CONSOLE_FONT_INFO): Define only when _WIN32_WINNT is less than _WIN32_WINNT_WINXP, i.e. for building with mingw.org's MinGW. --- diff --git a/src/w32.c b/src/w32.c index a8f69565d64..25f5555af30 100644 --- a/src/w32.c +++ b/src/w32.c @@ -539,11 +539,15 @@ typedef DWORD (WINAPI *ExpandEnvironmentStringsW_Proc) (LPCWSTR,LPWSTR,DWORD); typedef LANGID (WINAPI *GetUserDefaultUILanguage_Proc) (void); typedef COORD (WINAPI *GetConsoleFontSize_Proc) (HANDLE, DWORD); + +#if _WIN32_WINNT < 0x0501 typedef struct { DWORD nFont; COORD dwFontSize; } CONSOLE_FONT_INFO; +#endif + typedef BOOL (WINAPI *GetCurrentConsoleFont_Proc) ( HANDLE, BOOL,