Felipe Monteiro de Carvalho wrote: > In my projects I usually have a file with only general constants, > which is added by all others. In this file I add the following > declaration: > > {$IFNDEF FPC} > const > LineEnding = #10#13; > {#endif}
In Delphi this constant is called sLineBreak. For compatibility reasons, it exists in FPC as well. So using sLineBreak allows writing code without $ifdef's. Regards, Sergei _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus