Added IsNativeProcessorArchitecture helper macros to x64.nsh

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6989 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2018-04-08 21:58:25 +00:00
parent 9796261767
commit 8260047db4
2 changed files with 12 additions and 0 deletions

View file

@ -63,6 +63,16 @@
!endif
!macroend
!define IsNativeProcessorArchitecture `"" IsNativeProcessorArchitecture `
!macro _IsNativeProcessorArchitecture _ignore _arc _t _f
!insertmacro _LOGICLIB_TEMP
${GetNativeProcessorArchitecture} $_LOGICLIB_TEMP
!insertmacro _= $_LOGICLIB_TEMP ${_arc} `${_t}` `${_f}`
!macroend
!define IsNativeProcessorArchitectureIA32 '${IsNativeProcessorArchitecture} 0' ; Intel x86
!define IsNativeProcessorArchitectureAMD64 '${IsNativeProcessorArchitecture} 9' ; x86-64/x64
!define IsNativeProcessorArchitectureARM64 '${IsNativeProcessorArchitecture} 12'
!define DisableX64FSRedirection "!insertmacro DisableX64FSRedirection"
!macro DisableX64FSRedirection