mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:09:27 +02:00
* fixes bootstrapping with 2.2.x
git-svn-id: trunk@14355 -
This commit is contained in:
parent
90ddd046bc
commit
a3884c4e49
@ -181,11 +181,13 @@ procedure Wide2AnsiMove(source:pwidechar;var dest:ansistring;len:SizeInt);
|
||||
my0 : size_t;
|
||||
err: cint;
|
||||
begin
|
||||
{$ifndef VER2_2}
|
||||
if PtrInt(iconv_wide2ansi)=-1 then
|
||||
begin
|
||||
DefaultUnicode2AnsiMove(source,dest,len);
|
||||
exit;
|
||||
end;
|
||||
{$endif VER2_2}
|
||||
mynil:=nil;
|
||||
my0:=0;
|
||||
{ rought estimation }
|
||||
@ -245,12 +247,13 @@ procedure Ansi2WideMove(source:pchar;var dest:widestring;len:SizeInt);
|
||||
my0 : size_t;
|
||||
err: cint;
|
||||
begin
|
||||
{$ifndef VER2_2}
|
||||
if PtrInt(iconv_ansi2wide)=-1 then
|
||||
begin
|
||||
DefaultAnsi2UnicodeMove(source,dest,len);
|
||||
exit;
|
||||
end;
|
||||
|
||||
{$endif VER2_2}
|
||||
mynil:=nil;
|
||||
my0:=0;
|
||||
// extra space
|
||||
|
Loading…
Reference in New Issue
Block a user