Compiler directives {$IFEND} should be altered, since Delphi version XE4 (compilerversion 25.0), to {$ENDIF}. The most adequate solution is: ` {$IF NOT DEFINED(FPC) and (CompilerVersion < 24.0)} { > Delphi XE3 } {$ENDIF} {$ELSE} {$IFEND} { < Delphi XE4 }`