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:
parent
9796261767
commit
8260047db4
2 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,8 @@ Released on ??? ??th, 20??
|
|||
|
||||
\b MakeNSIS prints -CMDHELP to stdout (\W{http://sf.net/p/nsis/bugs/1203}{bug #1203})
|
||||
|
||||
\b Added IsNativeProcessorArchitecture helper macros to x64.nsh
|
||||
|
||||
\S2{} Translations
|
||||
|
||||
\b Fixed minor Spanish bug (\W{http://sf.net/p/nsis/bugs/1205}{bug #1205})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue