Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use FPC_FULLVERSION if available (from 2.2.4 on) as the VERX, VERX_…
…Y and VERX_Y_Z are only set for the specific version (e.g. VER2 is not set for FPC 3.0.0)
- Loading branch information
1 parent
28cb9f4
commit 5821a78
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5821a78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this tested with Delphi or only with FPC? This new include file breaks compilation on Delphi Tokyo. As far as I see, the following is not valid:
{$IF DEFINED(FPC_FULLVERSION)} {$IF FPC_FULLVERSION >= 30000} (stuff) {$ENDIF} {$ENDIF}
Compilation will break on the second line with "E2026 Constant expression expected". Obviously, the compiler tries to evaluate the 2nd if-statement, although it shouldn't.
5821a78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5821a78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed with 7363fc4cd783ac760cd636cc4c0cbbfe487e3b39
5821a78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.