* 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
bestreal = double;
{$if FPC_FULLVERSION>20700}
bestrealrec = TDoubleRec;
{$endif FPC_FULLVERSION>20700}
ts32real = single;
ts64real = double;
ts80real = type extended;

View File

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

View File

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

View File

@ -36,7 +36,7 @@ uses
{$ifdef WATCOM}
emu387,
{$endif WATCOM}
{$if defined(unix) and (FPC_FULLVERSION>20700)}
{$if defined(unix)}
{ system code page stuff for unix }
unixcp,
fpwidestring,
@ -197,7 +197,7 @@ procedure InitCompiler(const cmd:TCmdStr);
begin
if CompilerInited then
DoneCompiler;
{$if defined(unix) and (FPC_FULLVERSION>20700)}
{$if defined(unix)}
{ Set default code page for ansistrings on unix-like systems }
DefaultSystemCodePage:=GetSystemCodePage;
{$endif}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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