From 421d772e27a61f405e562175b19e7c4765a29d9d Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 31 May 2018 18:12:01 +0100 Subject: [PATCH] Mention CPU architecture in Windows build info. Apparently Windows on Arm has an emulator that lets it run x86 binaries without it being obvious, which could get confusing when people start reporting what version of what they're running where. (Indeed, it might get confusing for _me_ during early testing.) So now the Windows builds explicitly state 'x86' or 'Arm' as well as 32- or 64-bit. --- windows/winstuff.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/windows/winstuff.h b/windows/winstuff.h index 8a65f38d..a41974f1 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -29,7 +29,13 @@ #include "winhelp.h" +#if defined _M_IX86 || defined _M_AMD64 +#define BUILDINFO_PLATFORM "x86 Windows" +#elif defined _M_ARM || defined _M_ARM64 +#define BUILDINFO_PLATFORM "Arm Windows" +#else #define BUILDINFO_PLATFORM "Windows" +#endif struct Filename { char *path;