https://bugs.winehq.org/show_bug.cgi?id=55289
--- Comment #2 from Eric Pouech eric.pouech@gmail.com --- use
echo -e '#include <stddef.h>\nextern "C" int wmain(int argc,wchar_t *argv[]){return 0;}' > test.c
agreed that it shouldn't be necessary need to look where it comes from