[fpc-pascal] Re: Delphi incompatible conditionals?

2010-10-04 Thread Mark Daems
> -- Doorgestuurd bericht -- > From: Martin > if you can put it after the uses clause (so you can have a const section, the > following worked for me: > {$IFNDEF FPC} > const fpc_version=1; fpc_release=1; > {$ENDIF} > // your code below > {$IFDEF FPC} >  {$IFNDEF ver1} >   {$IF (f

Re: [fpc-pascal] Re: Delphi incompatible conditionals?

2010-10-03 Thread Marco van de Voort
In our previous episode, Mark Daems said: > ... > > Try longint(3) and longint(2). > > > > How should I do that? The place where the file containing the > conditions is included doesn't allow for defining constants as it's > the very first line in the unit code. {$if ... $FPCVERSION>LONGINT(3)

Re: [fpc-pascal] Re: Delphi incompatible conditionals?

2010-10-03 Thread Felipe Monteiro de Carvalho
One solution would be putting the contents of the fpc specific ifdefs inside a include file. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Delphi incompatible conditionals?

2010-10-03 Thread Mark Daems
> From: "Juha Manninen (gmail)" > To: "FPC-Pascal users discussions" > Date: Fri, 1 Oct 2010 20:04:18 +0300 > Subject: Re: [fpc-pascal] Fwd: Delphi incompatible conditionals? > On Friday 01 October 2010 19:33:48 Mark Daems wrote: >> ... >> And it's a weird behaviour, because it's all within an {$