Fix Delphi <= 2007 compilation (Thanks Juha)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3858 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2015-01-02 17:43:00 +00:00
parent deb1a5596a
commit adcc3c6129

View File

@ -11,10 +11,13 @@
DWORD = LongWord; DWORD = LongWord;
PByteArray = ^ByteArray; PByteArray = ^ByteArray;
ByteArray = array[0..$effffff] of Byte; ByteArray = array[0..$effffff] of Byte;
{$IF Declared(NativeUInt)} {$IFDEF CompilerVersion}
{$IF ( CompilerVersion > 19.0 )} //Delphi 2007=18.5; Delphi 2009 = 20
PtrInt = NativeInt; PtrInt = NativeInt;
PtrUInt = NativeUInt; PtrUInt = NativeUInt;
{$ELSE} // old delphi {$IFEND}
{$ENDIF CompilerVersion}
{$IF Not Declared(PtrInt) }
PtrInt = Integer; PtrInt = Integer;
PtrUInt = Cardinal; PtrUInt = Cardinal;
{$IFEND} {$IFEND}