* cleanup of 2.7.0 defines

This commit is contained in:
florian 2021-10-31 13:20:28 +01:00
parent e657aa6431
commit ff3acfb8cd
23 changed files with 6 additions and 49 deletions

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type extended; ts80real = type extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type extended; ts80real = type extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type extended; ts80real = type extended;

View File

@ -36,7 +36,7 @@ uses
{$ifdef WATCOM} {$ifdef WATCOM}
emu387, emu387,
{$endif WATCOM} {$endif WATCOM}
{$if defined(unix) and (FPC_FULLVERSION>20700)} {$if defined(unix)}
{ system code page stuff for unix } { system code page stuff for unix }
unixcp, unixcp,
fpwidestring, fpwidestring,
@ -197,7 +197,7 @@ procedure InitCompiler(const cmd:TCmdStr);
begin begin
if CompilerInited then if CompilerInited then
DoneCompiler; DoneCompiler;
{$if defined(unix) and (FPC_FULLVERSION>20700)} {$if defined(unix)}
{ 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}

View File

@ -32,9 +32,6 @@ implementation
uses uses
SysUtils, SysUtils,
{$if FPC_FULLVERSION<20700}
ccharset,
{$endif}
cclasses,widestr, cclasses,widestr,
cutils,globtype,globals,systems, cutils,globtype,globals,systems,
symbase,symconst,symtype,symdef,symsym,symtable, symbase,symconst,symtype,symdef,symsym,symtable,

View File

@ -24,13 +24,11 @@ Interface
Type Type
bestreal = extended; bestreal = extended;
{$if FPC_FULLVERSION>20700}
{$ifdef FPC_HAS_TYPE_EXTENDED} {$ifdef FPC_HAS_TYPE_EXTENDED}
bestrealrec = TExtended80Rec; bestrealrec = TExtended80Rec;
{$else} {$else}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif} {$endif}
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type extended; ts80real = type extended;

View File

@ -30,9 +30,7 @@ Interface
Type Type
bestreal = extended; bestreal = extended;
{$if FPC_FULLVERSION>20700}
bestrealrec = TExtended80Rec; bestrealrec = TExtended80Rec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -30,9 +30,7 @@ Interface
Type Type
bestreal = extended; bestreal = extended;
{$if FPC_FULLVERSION>20700}
bestrealrec = TExtended80Rec; bestrealrec = TExtended80Rec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type double; ts80real = type double;

View File

@ -1121,7 +1121,7 @@ implementation
end; end;
end; end;
{$if (FPC_FULLVERSION>20700) and not defined(FPC_SOFT_FPUX80)} {$if not defined(FPC_SOFT_FPUX80)}
{ bestrealrec is 2.7.1+ only } { bestrealrec is 2.7.1+ only }
{ replace .../const by a multiplication, but only if fastmath is enabled or { replace .../const by a multiplication, but only if fastmath is enabled or
@ -1170,7 +1170,7 @@ implementation
else else
; ;
end; end;
{$endif FPC_FULLVERSION>20700} {$endif not defined(FPC_SOFT_FPUX80)}
{ first, we handle widestrings, so we can check later for } { first, we handle widestrings, so we can check later for }
{ stringconstn only } { stringconstn only }

View File

@ -95,7 +95,7 @@ implementation
uses uses
widestr, widestr,
{$if FPC_FULLVERSION<20700}ccharset{$else}charset{$endif}, charset,
SysUtils, SysUtils,
version, version,
cutils,cmsgs, cutils,cmsgs,

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ uses
type type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ uses
type type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -291,11 +291,7 @@ implementation
cpuinfo, cpuinfo,
fmodule,fppu, fmodule,fppu,
{ this is needed for $I %CURRENTROUTINE%} { this is needed for $I %CURRENTROUTINE%}
procinfo procinfo;
{$if FPC_FULLVERSION<20700}
,ccharset
{$endif}
;
var var
{ dictionaries with the supported directives } { dictionaries with the supported directives }

View File

@ -30,9 +30,7 @@ uses
type type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -30,9 +30,7 @@ uses
type type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -30,13 +30,11 @@ Interface
Type Type
bestreal = extended; bestreal = extended;
{$if FPC_FULLVERSION>20700}
{$ifdef FPC_HAS_TYPE_EXTENDED} {$ifdef FPC_HAS_TYPE_EXTENDED}
bestrealrec = TExtended80Rec; bestrealrec = TExtended80Rec;
{$else} {$else}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif} {$endif}
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = extended; ts80real = extended;

View File

@ -23,9 +23,7 @@ Interface
Type Type
bestreal = double; bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec; bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single; ts32real = single;
ts64real = double; ts64real = double;
ts80real = type extended; ts80real = type extended;