Conditional compilations fails: {$ifdef} {$elseif} {$endif}
Original Reporter info from Mantis:
-
Reporter name:
Original Reporter info from Mantis:
- Reporter name:
Description:
{$IFDEF ENDIAN_LITTLE}
//
{$ELSEIF ENDIAN_BIG}
//
{$ELSE}
{$ERROR Unknown endian}
{$ENDIF}
Documentation state this should be correct syntax:
https://www.freepascal.org/docs-html/prog/progsu14.html#x21-200001.2.14
However, error: "ENDIF without IF(N)DEF" is shown due compilation on line with $ELSEIF.
Steps to reproduce:
Create new app and place upper code anywhere and try to compile.
Mantis conversion info:
- Mantis ID: 34858
- Fixed in version: 3.3.1
- Fixed in revision: 41724 (#bde560da)