Browse Source

* fixed compilation on platforms without ansistring support since assigning
one ansistring to another requires a helper (mantis #21260, patch by
Koenraad Lelong)

git-svn-id: trunk@20369 -

Jonas Maebe 13 years ago
parent
commit
aa9aeeada0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rtl/inc/text.inc

+ 4 - 0
rtl/inc/text.inc

@@ -1891,11 +1891,13 @@ end;
 {$endif FPC_WIDESTRING_EQUAL_UNICODESTRING}
 {$endif FPC_WIDESTRING_EQUAL_UNICODESTRING}
 
 
 
 
+{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
 procedure ReadAnsiStrFinal(var t: textrec);
 procedure ReadAnsiStrFinal(var t: textrec);
 begin
 begin
   { finalise the temp ansistring }
   { finalise the temp ansistring }
   PAnsiString(@t.userdata[StrPtrIndex])^ := '';
   PAnsiString(@t.userdata[StrPtrIndex])^ := '';
 end;
 end;
+{$endif FPC_HAS_FEATURE_ANSISTRINGS}
 
 
 
 
 procedure ReadStrCommon(var t: textrec; strdata: pchar; len: sizeint);
 procedure ReadStrCommon(var t: textrec; strdata: pchar; len: sizeint);
@@ -1938,6 +1940,7 @@ begin
 end;
 end;
 
 
 
 
+{$ifdef FPC_HAS_FEATURE_ANSISTRINGS}
 function fpc_SetupReadStr_Ansistr(const s: ansistring): PText; [public, alias: 'FPC_SETUPREADSTR_ANSISTR']; compilerproc;
 function fpc_SetupReadStr_Ansistr(const s: ansistring): PText; [public, alias: 'FPC_SETUPREADSTR_ANSISTR']; compilerproc;
 begin
 begin
   setupreadstrcommon(ReadWriteStrText);
   setupreadstrcommon(ReadWriteStrText);
@@ -1950,6 +1953,7 @@ begin
 end;
 end;
 
 
 function fpc_SetupReadStr_Ansistr_Intern(const s: ansistring): PText; [external name 'FPC_SETUPREADSTR_ANSISTR'];
 function fpc_SetupReadStr_Ansistr_Intern(const s: ansistring): PText; [external name 'FPC_SETUPREADSTR_ANSISTR'];
+{$endif FPC_HAS_FEATURE_ANSISTRINGS}
 
 
 
 
 function fpc_SetupReadStr_Shortstr(const s: shortstring): PText; compilerproc;
 function fpc_SetupReadStr_Shortstr(const s: shortstring): PText; compilerproc;