Explorar o código

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 -
svenbarth %!s(int64=12) %!d(string=hai) anos
pai
achega
b298483bb8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      compiler/compiler.pas

+ 2 - 2
compiler/compiler.pas

@@ -33,7 +33,7 @@ uses
 {$ifdef WATCOM}
 {$ifdef WATCOM}
   emu387,
   emu387,
 {$endif WATCOM}
 {$endif WATCOM}
-{$ifdef unix}
+{$if defined(unix) and ((FPC_VERSION>2) or (FPC_RELEASE>6))}
   { system code page stuff for unix }
   { system code page stuff for unix }
   unixcp,
   unixcp,
 {$endif}
 {$endif}
@@ -177,7 +177,7 @@ procedure InitCompiler(const cmd:TCmdStr);
 begin
 begin
   if CompilerInited then
   if CompilerInited then
    DoneCompiler;
    DoneCompiler;
-{$ifdef unix}
+{$if defined(unix) and ((FPC_VERSION>2) or (FPC_RELEASE>6))}
   { Set default code page for ansistrings on unix-like systems }
   { Set default code page for ansistrings on unix-like systems }
   DefaultSystemCodePage:=GetSystemCodePage;
   DefaultSystemCodePage:=GetSystemCodePage;
 {$endif}
 {$endif}