Closed myonlylonely closed 9 months ago
Cannot compile under Delphi 12, the compiler throws an error:
[dcc32 Error] SynCrtSock.pas(5381): E1012 Constant expression violates subrange bounds
It seems this is no longer valid under Delphi 12.
Handle := -1;
We could change that to:
Handle := THandle(-1);
There are 2 lines in SynCrtSock.pas we should change: TCrtSocket.CreateSockIn and TCrtSocket.CreateSockOut
SynCrtSock.pas
TCrtSocket.CreateSockIn
TCrtSocket.CreateSockOut
Please try with the last commit.
Just a backport what we did in mORMot 2.
Yes, that fixed the compile issue.
Cannot compile under Delphi 12, the compiler throws an error:
It seems this is no longer valid under Delphi 12.
We could change that to:
There are 2 lines in
SynCrtSock.pas
we should change:TCrtSocket.CreateSockIn
andTCrtSocket.CreateSockOut