From the crosswin32-dtrans-mingw.diff patch in the build repo. Also in janneke's gub, see 8ba48182c0, but whether this was originally written by janneke, or jcorrius, or somebody else, no idea, sigh.
8ba48182c0