headers: Make __MACHINEI a no-op on non-x86 architectures

In older MSVC versions that had a __MACHINEI macro, it was defined
to only expand on Intel 32 and 64 bit x86.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2023-08-02 13:05:46 +03:00
parent 95433fd59d
commit 69846cfb7f

View File

@ -212,6 +212,11 @@ extern "C" {
#define __MACHINEW64 __MACHINEZ
#endif
#if !(defined(_X86_) || defined(__x86_64))
#undef __MACHINEI
#define __MACHINEI __MACHINEZ
#endif
#if !(defined(_X86_) || defined(__x86_64))
#undef __MACHINEX86X
#define __MACHINEX86X __MACHINEZ