mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 15:09:13 +02:00
fcl-json: fixed compile with fpc 3.0.4
git-svn-id: trunk@42888 -
This commit is contained in:
parent
3bc01b590e
commit
4e6e929fb5
@ -1016,12 +1016,14 @@ Var
|
||||
SS : TStringStream;
|
||||
begin
|
||||
if Assigned(JPSH) then
|
||||
JPSH(JSON,useUTF8,Result)
|
||||
JPSH(JSON,UseUTF8,Result)
|
||||
else
|
||||
begin
|
||||
{$IF FPC_FULLVERSION>30300}
|
||||
if UseUTF8 then
|
||||
SS:=TStringStream.Create(JSON,TEncoding.UTF8)
|
||||
else
|
||||
{$ENDIF}
|
||||
SS:=TStringStream.Create(JSON);
|
||||
try
|
||||
Result:=GetJSON(SS,UseUTF8);
|
||||
|
Loading…
Reference in New Issue
Block a user