Remove an old mingw workaround (#2059) (#3975)

Backports fix from master branch as the code no longer compiles
on mingw64/gcc 14.1.0 without gnu extensions enabled.
1 file changed