What's the first version of Delphi that has Int8
, Int16
, Int32
, UInt8
, UInt16
, UInt32
declared in the System unit.
Which VERnnn
conditional symbol or RTLVersion value do I need to use for detection?
What's the first version of Delphi that has Int8
, Int16
, Int32
, UInt8
, UInt16
, UInt32
declared in the System unit.
Which VERnnn
conditional symbol or RTLVersion value do I need to use for detection?
I don't know the answer to your question. However, you could avoid needing to know by using code like this in a global include file or a unit that is used by all other units in your code:
{$IF Declared(System.Int8)}
{$ELSE}
type
Int8 = ShortInt;
Int16 = SmallInt;
Int32 = Integer;//or Longint if you prefer
UInt8 = Byte;
UInt16 = Word;
UInt32 = Cardinal;//likewise for Longword
{$IFEND}
All I know for sure is that these type aliases are declared in Delphi 2009, and I wouldn't be surprised if this is the version in which they first appeared.