On Wed Mar 25 23:25:13 2026 +0000, Brendan Shanks wrote:
I was able to reproduce this when building without a PE cross-compiler, it looks like Wine's own `include/msvcrt/stdlib.h` is being included instead of the system one. Not sure if there's an alternate/good way to fix this. Although we still support building without a PE cross-compiler, I don't think it's recommended. Is there a reason you/this user is building this way? Ah, you found why this is not happening for a regular build of the FreeBSD wine-devel port where indeed a PE cross-compiler is used.
I ran into this with my daily autobuilder which does not use a PE cross-compiler (yet). So it's not a FreeBSD port or one of the users thereof. Still worth addressing? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10445#note_133806