shellapi.pp: syntax error (fpc 1.9.3+)
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
With ppc386 built from current CVS, an attempt to compile shellapi.pp fails with error message:
"shellapi.pp(864,5) Error: Syntax error while parsing a conditional compiling expression"
Apparently caused by the use of C-style hex notation in
--------------------------------------------------
{$if (_WIN32_IE >= 0x0501)}
SHGNLI_NOLNK = $000000008; { don't add ".lnk" extension }
{$endif}
{ _WIN2_IE >= 0x0501 }
--------------------------------------------------
To fix that, replace the above code with:
--------------------------------------------------
{$IF (_WIN32_IE >= $0501)}
SHGNLI_NOLNK = $000000008; { don't add ".lnk" extension }
{$IFEND}
{ _WIN2_IE >= $0501 }
--------------------------------------------------
Additional information:
Reporter: Robert Rossmair [Team JEDI]
EMail: Robert dot Rossmair at gmx dot net
Mantis conversion info:
- Mantis ID: 5121
- OS: WIN32
- Version: 1.9.3
- Fixed in version: 1.9.3