Recent

Author Topic: [Solved]TSize not in the LCLType  (Read 925 times)

jamie

  • Hero Member
  • *****
  • Posts: 6133
[Solved]TSize not in the LCLType
« on: September 02, 2019, 10:22:11 pm »
In the attempt to make my code as close to cross platform compileable I noticed that I need to use the WINDOWS unit for the TSize type. The LCLTYPE does not seem to have this type in its file, is there a reason for this?

« Last Edit: September 03, 2019, 12:41:05 am by jamie »
The only true wisdom is knowing you know nothing

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: TSize not in the LCLType
« Reply #1 on: September 02, 2019, 10:37:47 pm »
Hi!

tsize points to typshrd.inc in /usr/share/fpcsrc/3.0.4/rtl/inc

Winni

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: TSize not in the LCLType
« Reply #2 on: September 02, 2019, 10:38:29 pm »
Yes, the RTL unit Types declares TSize.
Types is much to be preferred over Windows for cross-platform code.

jamie

  • Hero Member
  • *****
  • Posts: 6133
Re: TSize not in the LCLType
« Reply #3 on: September 02, 2019, 10:40:19 pm »
Ok, Thanks I didn't know that.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018