Bogusław Brandys wrote:
Hi,


Error on compilation :

D:\lazarus\lcl\LCLProc.pas(2144,25) Error: Incompatible types: got "AnsiString" expected "Char"


in this part of unit:

// fpc 2.1.1 stores string constants as array of char so maybe this
         // will work for without ifdef (once available in 2.0.x too):
         // move(lineending, dest^, sizeof(LineEnding));
{$IFDEF WINDOWS}
               begin
                 move(lineending[1], dest^, length(LineEnding));
                 inc(dest^, length(LineEnding)-1);
               end;
{$ELSE}
               Dest^ := LineEnding; <----- Dest^ := pChar(LineEnding); ?
{$ENDIF}
        end;
        inc(Source);
        inc(Dest);



Regards
Boguslaw Brandys


Ok.My assumption is bad. I'm using FPC 2.0.3  under Windows XP.
Is there any problem  with {$ifdef WINDOWS} for that version of FPC ?

Regards
Boguslaw Brandys

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to