https://bugs.winehq.org/show_bug.cgi?id=54263
--- Comment #7 from Liviu Ionescu ilg@livius.net --- I confirm that with the proposed patch, a full clean build passed with the toolchain including mingw-w64 10.0.
So, from my point of view, the solution is acceptable, and the patch can be included in next release.