Subject: bug#62792: Emacs 29.0.90 build fails

From: Eli Zaretskii <[email-masked]>
Date: Wed, 12 Apr 2023 22:01:40 +0300

> From: Tak Ota <[email-masked]>
> Date: Wed, 12 Apr 2023 11:42:06 -0700
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
> I have attached MinGW/include/wincon.h from my system.

Interesting.  It sounds like you are using (an old version of)
MinGW64, but your system headers are from mingw.org's MinGW.