+ defined FPC_FULLVERSION as integer constant containing the version,

release and patch level are always two digits so the version can 
  be compared numerically: so 2.2.2 results in 20202, resolves 

git-svn-id: trunk@11504 -
This commit is contained in:
florian 2008-08-03 09:31:50 +00:00
parent 10263e8e0f
commit e0ff540918
3 changed files with 11 additions and 0 deletions

1
.gitattributes vendored
View File

@ -8408,6 +8408,7 @@ tests/webtbs/tw11435c.pp svneol=native#text/plain
tests/webtbs/tw11436.pp svneol=native#text/plain
tests/webtbs/tw1152.pp svneol=native#text/plain
tests/webtbs/tw11543.pp svneol=native#text/plain
tests/webtbs/tw11568.pp svneol=native#text/plain
tests/webtbs/tw1157.pp svneol=native#text/plain
tests/webtbs/tw1157b.pp svneol=native#text/plain
tests/webtbs/tw11619.pp svneol=native#text/plain

View File

@ -2578,6 +2578,7 @@ begin
set_system_macro('FPC_VERSION',version_nr);
set_system_macro('FPC_RELEASE',release_nr);
set_system_macro('FPC_PATCH',patch_nr);
set_system_macro('FPC_FULLVERSION',Format('%d%.02d%.02d',[StrToInt(version_nr),StrToInt(release_nr),StrToInt(patch_nr)]));
for i:=low(tfeature) to high(tfeature) do
if i in features then

9
tests/webtbs/tw11568.pp Normal file
View File

@ -0,0 +1,9 @@
{$if not(fpc_fullversion>20202)}
{$error Problem with fpc_fullversion}
{$endif}
{ force compiler error if it's defined wrong }
{$if fpc_fullversion>20202)}
begin
end.
{$endif}