🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.language.basm
2 messages
2 total messages Started by Ulrich Kobsa Wed, 06 Aug 2008 09:24
FastMM 4.86 doesn't compile with Delphi 5
#7
Author: Ulrich Kobsa
Date: Wed, 06 Aug 2008 09:24
35 lines
1622 bytes
Hi,

version 4.86 doesn't compile with Delphi 5 cause of an invalid use of
compiler directives:

Line 7348:

{$ifdef Delphi6AndUp}
                  {$if RTLVersion >= 20}
                  LElemSize := PStrRec(LDataPtr).elemSize;
                  {$else}               <-- not allowed
                  LElemSize := 1;
                  {$ifend}
{$else}
                  LElemSize := 1;
{$endif}

is not allowed (according Delphi 2007 Help for IFEND). One has to
replace the $else with $elseif TRUE:

{$ifdef Delphi6AndUp}
                  {$if RTLVersion >= 20}
                  LElemSize := PStrRec(LDataPtr).elemSize;
                  {$elseif TRUE}               <-- fix
                  LElemSize := 1;
                  {$ifend}
{$else}
                  LElemSize := 1;
{$endif}
 



kind regards,
Ulrich
Re: FastMM 4.86 doesn't compile with Delphi 5
#8
Author: Pierre le Riche
Date: Wed, 06 Aug 2008 10:48
9 lines
1161 bytes
Hi Ulrich,

> version 4.86 doesn't compile with Delphi 5 cause of an invalid use of
> compiler directives:

Thanks, that has already been fixed internally.

Regards,
Pierre
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads