I don't know which comment you're referring to exactly,
https://gitlab.winehq.org/wine/wine/-/merge_requests/2091#note_23188
but you don't need the header and soname checks in the C code either.
Uhm, the soname makes sense, but how do I not need the header checks?