Browse Source

Add TARGET_OS_64BIT macro for corresponding CPU targets

git-svn-id: trunk@30063 -
pierre 10 years ago
parent
commit
dfb21140a2
1 changed files with 17 additions and 0 deletions
  1. 17 0
      ide/globdir.inc

+ 17 - 0
ide/globdir.inc

@@ -195,3 +195,20 @@
 {$ifdef FPC_ARMHF}
   {$define FPC_ARMEL32}
 {$endif FPC_ARMHF}
+
+{ Set TARGET_IS_64BIT for corresponding compilation targets }
+{$ifdef X86_64}
+  {$define TARGET_IS_64BIT}
+{$endif}
+{$ifdef IA64}
+  {$define TARGET_IS_64BIT}
+{$endif}
+{$ifdef ALPHA}
+  {$define TARGET_IS_64BIT}
+{$endif}
+{$ifdef POWERPC64}
+  {$define TARGET_IS_64BIT}
+{$endif}
+{$ifdef AARCH64}
+  {$define TARGET_IS_64BIT}
+{$endif}