Skip to content

Commit

Permalink
fixed Delphi compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Aug 30, 2023
1 parent fca9a7c commit dc2594a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'2.1.5807'
'2.1.5808'
4 changes: 2 additions & 2 deletions src/net/mormot.net.sock.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4696,7 +4696,7 @@ procedure TCrtSocket.CreateSockIn(LineBreak: TTextLineBreakStyle;
BufSize := InputBufferSize;
BufPtr := pointer(PAnsiChar(SockIn) + SizeOf(TTextRec));
OpenFunc := @OpenSock;
Handle := INVALID_HANDLE_VALUE;
Handle := {$ifdef FPC}THandle{$endif}(0); // some invalid handle
end;
SetLineBreakStyle(SockIn^, LineBreak); // http does break lines with #13#10
Reset(SockIn^);
Expand All @@ -4718,7 +4718,7 @@ procedure TCrtSocket.CreateSockOut(OutputBufferSize: integer);
BufSize := OutputBufferSize;
BufPtr := pointer(PAnsiChar(SockIn) + SizeOf(TTextRec)); // ignore Buffer[] (Delphi 2009+)
OpenFunc := @OpenSock;
Handle := INVALID_HANDLE_VALUE;
Handle := {$ifdef FPC}THandle{$endif}(0); // some invalid handle
end;
SetLineBreakStyle(SockOut^, tlbsCRLF); // force e.g. for Linux platforms
Rewrite(SockOut^);
Expand Down

0 comments on commit dc2594a

Please sign in to comment.