mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
* fix compilation of objpas if ansistrings are disabled as requested by Michael Ring on fpc-devel
git-svn-id: trunk@23256 -
This commit is contained in:
parent
020b3e02ea
commit
0215f00490
@ -87,11 +87,11 @@ Var
|
||||
Function ParamStr(Param : Integer) : Ansistring;
|
||||
{$endif FPC_HAS_FEATURE_COMMANDARGS}
|
||||
|
||||
{$ifdef FPC_HAS_FEATURE_FILEIO}
|
||||
{$if defined(FPC_HAS_FEATURE_FILEIO) and defined(FPC_HAS_FEATURE_ANSISTRINGS)}
|
||||
Procedure MkDir(s:ansistring);overload;
|
||||
Procedure RmDir(s:ansistring);overload;
|
||||
Procedure ChDir(s:ansistring);overload;
|
||||
{$endif FPC_HAS_FEATURE_FILEIO}
|
||||
{$endif defined(FPC_HAS_FEATURE_FILEIO) and defined(FPC_HAS_FEATURE_ANSISTRINGS)}
|
||||
|
||||
{****************************************************************************
|
||||
Resource strings.
|
||||
@ -244,7 +244,7 @@ end;
|
||||
{$endif FPC_HAS_FEATURE_COMMANDARGS}
|
||||
|
||||
|
||||
{$ifdef FPC_HAS_FEATURE_FILEIO}
|
||||
{$if defined(FPC_HAS_FEATURE_FILEIO) and defined(FPC_HAS_FEATURE_ANSISTRINGS)}
|
||||
{ xxDirPChar procedures can adjust directory separators in supplied string (at least
|
||||
Windows implementation does so). Therefore full copy of argument is needed,
|
||||
just passing by value isn't enough because it won't copy a string literal. }
|
||||
@ -265,7 +265,7 @@ begin
|
||||
UniqueString(s);
|
||||
ChDirpchar(pchar(s),length(s));
|
||||
end;
|
||||
{$endif FPC_HAS_FEATURE_FILEIO}
|
||||
{$endif defined(FPC_HAS_FEATURE_FILEIO) and defined(FPC_HAS_FEATURE_ANSISTRINGS)}
|
||||
|
||||
{$ifdef FPC_HAS_FEATURE_RESOURCES}
|
||||
{ ---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user