On Fri Sep 29 11:39:56 2023 +0000, Martin Storsjö wrote:
I also generally dislike unnecessary differences between mingw and MSVC environments, but this one is quite clear IMO; in mingw mode, the compiler shouldn't predefine any `_M_<arch>` defines, but it should do that in the `__<arch>__` namespace. But here there's indeed no predecent for what to name it, so we do need one. And `__aarch64ec__` isn't better, since there's literally no such thing as `aarch64ec`. @julliard So yes, there is an `__arm64ec__` define that we could check for, in mingw contexts. (For MSVC contexts, I guess we should define that based on `_M_ARM64EC`, if that's what's done for other architecture macros? Or does Wine carry parallel checks for GNU and MSVC style arch macros everywhere throughout?)
Wine uses configure to ensure that `__<arch>__` macros are present: https://gitlab.winehq.org/wine/wine/-/blob/master/configure.ac?ref_type=head...