Fix ARM64 build doesn't contain 64 bits information

Fix #11068, close #11069
This commit is contained in:
Christian Grasser 2022-01-22 18:54:22 +01:00 committed by Don Ho
parent 7df6af7e2e
commit 5b5dbbd3f9
3 changed files with 10 additions and 1 deletions

View File

@ -12,3 +12,7 @@ static constexpr unsigned int min(unsigned int a, unsigned int b) {
// __try and __except are unknown to GCC, so convert them to something eligible
#define __try try
#define __except(x) catch(...)
#ifndef PROCESSOR_ARCHITECTURE_ARM64
#define PROCESSOR_ARCHITECTURE_ARM64 12
#endif

View File

@ -38,7 +38,7 @@ enum LangType {L_TEXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\
L_EXTERNAL};
enum winVer{ WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7, WV_WIN8, WV_WIN81, WV_WIN10 };
enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };
enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 };

View File

@ -791,6 +791,10 @@ winVer NppParameters::getWindowsVersion()
_platForm = PF_X86;
break;
case PROCESSOR_ARCHITECTURE_ARM64:
_platForm = PF_ARM64;
break;
default:
_platForm = PF_UNKNOWN;
}
@ -7104,6 +7108,7 @@ generic_string NppParameters::getWinVerBitStr() const
case PF_X64:
case PF_IA64:
case PF_ARM64:
return TEXT("64-bit");
default: