AXConstants.pas 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. { Pascal Translation: Jonas Maebe, <[email protected]>, October 2009 }
  2. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2012 }
  3. {
  4. Modified for use with Free Pascal
  5. Version 308
  6. Please report any bugs to <[email protected]>
  7. }
  8. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  9. {$mode macpas}
  10. {$packenum 1}
  11. {$macro on}
  12. {$inline on}
  13. {$calling mwpascal}
  14. unit AXConstants;
  15. interface
  16. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  17. {$setc GAP_INTERFACES_VERSION := $0308}
  18. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  19. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  20. {$endc}
  21. {$ifc defined CPUPOWERPC and defined CPUI386}
  22. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  23. {$endc}
  24. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  25. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  26. {$endc}
  27. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  28. {$setc __ppc__ := 1}
  29. {$elsec}
  30. {$setc __ppc__ := 0}
  31. {$endc}
  32. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  33. {$setc __ppc64__ := 1}
  34. {$elsec}
  35. {$setc __ppc64__ := 0}
  36. {$endc}
  37. {$ifc not defined __i386__ and defined CPUI386}
  38. {$setc __i386__ := 1}
  39. {$elsec}
  40. {$setc __i386__ := 0}
  41. {$endc}
  42. {$ifc not defined __x86_64__ and defined CPUX86_64}
  43. {$setc __x86_64__ := 1}
  44. {$elsec}
  45. {$setc __x86_64__ := 0}
  46. {$endc}
  47. {$ifc not defined __arm__ and defined CPUARM}
  48. {$setc __arm__ := 1}
  49. {$elsec}
  50. {$setc __arm__ := 0}
  51. {$endc}
  52. {$ifc not defined __arm64__ and defined CPUAARCH64}
  53. {$setc __arm64__ := 1}
  54. {$elsec}
  55. {$setc __arm64__ := 0}
  56. {$endc}
  57. {$ifc defined cpu64}
  58. {$setc __LP64__ := 1}
  59. {$elsec}
  60. {$setc __LP64__ := 0}
  61. {$endc}
  62. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  63. {$error Conflicting definitions for __ppc__ and __i386__}
  64. {$endc}
  65. {$ifc defined __ppc__ and __ppc__}
  66. {$setc TARGET_CPU_PPC := TRUE}
  67. {$setc TARGET_CPU_PPC64 := FALSE}
  68. {$setc TARGET_CPU_X86 := FALSE}
  69. {$setc TARGET_CPU_X86_64 := FALSE}
  70. {$setc TARGET_CPU_ARM := FALSE}
  71. {$setc TARGET_CPU_ARM64 := FALSE}
  72. {$setc TARGET_OS_MAC := TRUE}
  73. {$setc TARGET_OS_IPHONE := FALSE}
  74. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  75. {$setc TARGET_OS_EMBEDDED := FALSE}
  76. {$elifc defined __ppc64__ and __ppc64__}
  77. {$setc TARGET_CPU_PPC := FALSE}
  78. {$setc TARGET_CPU_PPC64 := TRUE}
  79. {$setc TARGET_CPU_X86 := FALSE}
  80. {$setc TARGET_CPU_X86_64 := FALSE}
  81. {$setc TARGET_CPU_ARM := FALSE}
  82. {$setc TARGET_CPU_ARM64 := FALSE}
  83. {$setc TARGET_OS_MAC := TRUE}
  84. {$setc TARGET_OS_IPHONE := FALSE}
  85. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  86. {$setc TARGET_OS_EMBEDDED := FALSE}
  87. {$elifc defined __i386__ and __i386__}
  88. {$setc TARGET_CPU_PPC := FALSE}
  89. {$setc TARGET_CPU_PPC64 := FALSE}
  90. {$setc TARGET_CPU_X86 := TRUE}
  91. {$setc TARGET_CPU_X86_64 := FALSE}
  92. {$setc TARGET_CPU_ARM := FALSE}
  93. {$setc TARGET_CPU_ARM64 := FALSE}
  94. {$ifc defined(iphonesim)}
  95. {$setc TARGET_OS_MAC := FALSE}
  96. {$setc TARGET_OS_IPHONE := TRUE}
  97. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  98. {$elsec}
  99. {$setc TARGET_OS_MAC := TRUE}
  100. {$setc TARGET_OS_IPHONE := FALSE}
  101. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  102. {$endc}
  103. {$setc TARGET_OS_EMBEDDED := FALSE}
  104. {$elifc defined __x86_64__ and __x86_64__}
  105. {$setc TARGET_CPU_PPC := FALSE}
  106. {$setc TARGET_CPU_PPC64 := FALSE}
  107. {$setc TARGET_CPU_X86 := FALSE}
  108. {$setc TARGET_CPU_X86_64 := TRUE}
  109. {$setc TARGET_CPU_ARM := FALSE}
  110. {$setc TARGET_CPU_ARM64 := FALSE}
  111. {$ifc defined(iphonesim)}
  112. {$setc TARGET_OS_MAC := FALSE}
  113. {$setc TARGET_OS_IPHONE := TRUE}
  114. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  115. {$elsec}
  116. {$setc TARGET_OS_MAC := TRUE}
  117. {$setc TARGET_OS_IPHONE := FALSE}
  118. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  119. {$endc}
  120. {$setc TARGET_OS_EMBEDDED := FALSE}
  121. {$elifc defined __arm__ and __arm__}
  122. {$setc TARGET_CPU_PPC := FALSE}
  123. {$setc TARGET_CPU_PPC64 := FALSE}
  124. {$setc TARGET_CPU_X86 := FALSE}
  125. {$setc TARGET_CPU_X86_64 := FALSE}
  126. {$setc TARGET_CPU_ARM := TRUE}
  127. {$setc TARGET_CPU_ARM64 := FALSE}
  128. { will require compiler define when/if other Apple devices with ARM cpus ship }
  129. {$setc TARGET_OS_MAC := FALSE}
  130. {$setc TARGET_OS_IPHONE := TRUE}
  131. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  132. {$setc TARGET_OS_EMBEDDED := TRUE}
  133. {$elifc defined __arm64__ and __arm64__}
  134. {$setc TARGET_CPU_PPC := FALSE}
  135. {$setc TARGET_CPU_PPC64 := FALSE}
  136. {$setc TARGET_CPU_X86 := FALSE}
  137. {$setc TARGET_CPU_X86_64 := FALSE}
  138. {$setc TARGET_CPU_ARM := FALSE}
  139. {$setc TARGET_CPU_ARM64 := TRUE}
  140. { will require compiler define when/if other Apple devices with ARM cpus ship }
  141. {$setc TARGET_OS_MAC := FALSE}
  142. {$setc TARGET_OS_IPHONE := TRUE}
  143. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  144. {$setc TARGET_OS_EMBEDDED := TRUE}
  145. {$elsec}
  146. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  147. {$endc}
  148. {$ifc defined __LP64__ and __LP64__ }
  149. {$setc TARGET_CPU_64 := TRUE}
  150. {$elsec}
  151. {$setc TARGET_CPU_64 := FALSE}
  152. {$endc}
  153. {$ifc defined FPC_BIG_ENDIAN}
  154. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  155. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  156. {$elifc defined FPC_LITTLE_ENDIAN}
  157. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  158. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  159. {$elsec}
  160. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  161. {$endc}
  162. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  163. {$setc CALL_NOT_IN_CARBON := FALSE}
  164. {$setc OLDROUTINENAMES := FALSE}
  165. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  166. {$setc OPAQUE_UPP_TYPES := TRUE}
  167. {$setc OTCARBONAPPLICATION := TRUE}
  168. {$setc OTKERNEL := FALSE}
  169. {$setc PM_USE_SESSION_APIS := TRUE}
  170. {$setc TARGET_API_MAC_CARBON := TRUE}
  171. {$setc TARGET_API_MAC_OS8 := FALSE}
  172. {$setc TARGET_API_MAC_OSX := TRUE}
  173. {$setc TARGET_CARBON := TRUE}
  174. {$setc TARGET_CPU_68K := FALSE}
  175. {$setc TARGET_CPU_MIPS := FALSE}
  176. {$setc TARGET_CPU_SPARC := FALSE}
  177. {$setc TARGET_OS_UNIX := FALSE}
  178. {$setc TARGET_OS_WIN32 := FALSE}
  179. {$setc TARGET_RT_MAC_68881 := FALSE}
  180. {$setc TARGET_RT_MAC_CFM := FALSE}
  181. {$setc TARGET_RT_MAC_MACHO := TRUE}
  182. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  183. {$setc TYPE_BOOL := FALSE}
  184. {$setc TYPE_EXTENDED := FALSE}
  185. {$setc TYPE_LONGLONG := TRUE}
  186. {$endc} {not MACOSALLINCLUDE}
  187. {$ifc TARGET_OS_MAC}
  188. {$ALIGN POWER}
  189. {
  190. * AXConstants.h
  191. *
  192. * Created by John Louch on Tue Mar 26 2002.
  193. * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  194. *
  195. }
  196. {$endc} {TARGET_OS_MAC}
  197. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  198. end.
  199. {$endc} {not MACOSALLINCLUDE}