mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 23:30:37 +02:00
Allow compilation of the compiler with 2.6.x again on Unix systems.
compiler.pas: check for "FPC_VERSION>2 or FPC_RELEASE>6" before using unixcp git-svn-id: trunk@23746 -
This commit is contained in:
parent
1244cdff70
commit
b298483bb8
@ -33,7 +33,7 @@ uses
|
||||
{$ifdef WATCOM}
|
||||
emu387,
|
||||
{$endif WATCOM}
|
||||
{$ifdef unix}
|
||||
{$if defined(unix) and ((FPC_VERSION>2) or (FPC_RELEASE>6))}
|
||||
{ system code page stuff for unix }
|
||||
unixcp,
|
||||
{$endif}
|
||||
@ -177,7 +177,7 @@ procedure InitCompiler(const cmd:TCmdStr);
|
||||
begin
|
||||
if CompilerInited then
|
||||
DoneCompiler;
|
||||
{$ifdef unix}
|
||||
{$if defined(unix) and ((FPC_VERSION>2) or (FPC_RELEASE>6))}
|
||||
{ Set default code page for ansistrings on unix-like systems }
|
||||
DefaultSystemCodePage:=GetSystemCodePage;
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user