THandle should be defined as 64-bit value in 64-bit mode
Original Reporter info from Mantis: fluidphreak
-
Reporter name: Frederik Slijkerman
Original Reporter info from Mantis: fluidphreak
- Reporter name: Frederik Slijkerman
Description:
In rtl/bsd/sysosh.inc, THandle is always defined as Longint, even in 64-bit mode. I have created a version of Delphi's VCL for Mac OS X (using Cocoa), which naturally depends on the THandle type and this works fine in 32-bit mode. However, in 64-bit mode, I need THandle to be able to store a pointer for Delphi compatibility, and this doesn't work because THandle is always 32-bit.
Can you please change THandle to PtrUInt like it is in the Windows versions of the FPC RTL? That would be incredibly helpful and I don't see how it could hurt existing source code. I think if you were going to make a 64-bit version of the FCL for Mac OS X, you'll run into this same problem.
Mantis conversion info:
- Mantis ID: 21669
- OS Build: 10.6
- Build: 2011/12/30
- Platform: Mac OS X
- Version: 2.6.0
- Monitored by: » Vincent (Vincent Snijders)