Since https://gitlab.winehq.org/wine/wine/-/merge_requests/3126 and https://gitlab.winehq.org/wine/wine/-/merge_requests/3138 have been merge I don't think this has any actual effect. I have been removing these DECLSPEC in the past in several places, I don't think there's any reason to add them back.