diff options
Diffstat (limited to 'packages/univint/src/PMPrintingDialogExtensions.pas')
-rw-r--r-- | packages/univint/src/PMPrintingDialogExtensions.pas | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/packages/univint/src/PMPrintingDialogExtensions.pas b/packages/univint/src/PMPrintingDialogExtensions.pas index 9933428593..5b03809ff5 100644 --- a/packages/univint/src/PMPrintingDialogExtensions.pas +++ b/packages/univint/src/PMPrintingDialogExtensions.pas @@ -11,7 +11,7 @@ Bugs?: For bug reports, consult the following page on the World Wide Web: - http://www.freepascal.org/bugs.html + http://bugs.freepascal.org } { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 } { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2012 } @@ -69,6 +69,11 @@ interface {$elsec} {$setc __arm__ := 0} {$endc} +{$ifc not defined __arm64__ and defined CPUAARCH64} + {$setc __arm64__ := 1} +{$elsec} + {$setc __arm64__ := 0} +{$endc} {$ifc defined cpu64} {$setc __LP64__ := 1} @@ -87,6 +92,7 @@ interface {$setc TARGET_CPU_X86 := FALSE} {$setc TARGET_CPU_X86_64 := FALSE} {$setc TARGET_CPU_ARM := FALSE} + {$setc TARGET_CPU_ARM64 := FALSE} {$setc TARGET_OS_MAC := TRUE} {$setc TARGET_OS_IPHONE := FALSE} {$setc TARGET_IPHONE_SIMULATOR := FALSE} @@ -97,6 +103,7 @@ interface {$setc TARGET_CPU_X86 := FALSE} {$setc TARGET_CPU_X86_64 := FALSE} {$setc TARGET_CPU_ARM := FALSE} + {$setc TARGET_CPU_ARM64 := FALSE} {$setc TARGET_OS_MAC := TRUE} {$setc TARGET_OS_IPHONE := FALSE} {$setc TARGET_IPHONE_SIMULATOR := FALSE} @@ -107,6 +114,7 @@ interface {$setc TARGET_CPU_X86 := TRUE} {$setc TARGET_CPU_X86_64 := FALSE} {$setc TARGET_CPU_ARM := FALSE} + {$setc TARGET_CPU_ARM64 := FALSE} {$ifc defined(iphonesim)} {$setc TARGET_OS_MAC := FALSE} {$setc TARGET_OS_IPHONE := TRUE} @@ -123,6 +131,7 @@ interface {$setc TARGET_CPU_X86 := FALSE} {$setc TARGET_CPU_X86_64 := TRUE} {$setc TARGET_CPU_ARM := FALSE} + {$setc TARGET_CPU_ARM64 := FALSE} {$setc TARGET_OS_MAC := TRUE} {$setc TARGET_OS_IPHONE := FALSE} {$setc TARGET_IPHONE_SIMULATOR := FALSE} @@ -133,13 +142,26 @@ interface {$setc TARGET_CPU_X86 := FALSE} {$setc TARGET_CPU_X86_64 := FALSE} {$setc TARGET_CPU_ARM := TRUE} + {$setc TARGET_CPU_ARM64 := FALSE} + { will require compiler define when/if other Apple devices with ARM cpus ship } + {$setc TARGET_OS_MAC := FALSE} + {$setc TARGET_OS_IPHONE := TRUE} + {$setc TARGET_IPHONE_SIMULATOR := FALSE} + {$setc TARGET_OS_EMBEDDED := TRUE} +{$elifc defined __arm64__ and __arm64__} + {$setc TARGET_CPU_PPC := FALSE} + {$setc TARGET_CPU_PPC64 := FALSE} + {$setc TARGET_CPU_X86 := FALSE} + {$setc TARGET_CPU_X86_64 := FALSE} + {$setc TARGET_CPU_ARM := FALSE} + {$setc TARGET_CPU_ARM64 := TRUE} { will require compiler define when/if other Apple devices with ARM cpus ship } {$setc TARGET_OS_MAC := FALSE} {$setc TARGET_OS_IPHONE := TRUE} {$setc TARGET_IPHONE_SIMULATOR := FALSE} {$setc TARGET_OS_EMBEDDED := TRUE} {$elsec} - {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.} + {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.} {$endc} {$ifc defined __LP64__ and __LP64__ } |