TDate and TTime are not defined in unit System
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
Delphi supports the types TDate and TTime declared in System unit, while in Free Pascal they are only supported through Lazarus' Controls unit (and for non Lazarus projects, that is too much dependency ;) ).
Additional information:
Attached patch adds these types after declaration of TDateTime in systemh.inc.
I didn't touch PDate (defined around line 350 in systemh.inc), though, because I don't know if that would change/break something.
Note: The corresponding types in Lazarus' Controls unit might now be conditionally removed, but I don't know the correct compiler version defines for this ;)
Mantis conversion info:
- Mantis ID: 15474
- OS: Linux
- OS Build: 2.6.31
- Platform: i386
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 27838 (#a3555a84)