Hi.
I want to make my code work in any Delphi version.
For this I use compiler directives. But the compiler is still not happy 100%.
XE5 compiler is keep warning me about {$IFEND}. It wants {$ENDIF} or {$LEGACYIFEND ON}.
But {$ENDIF} and {$LEGACYIFEND ON} are not accepted by older versions.
What can I do?
Thank you.
Regards,
David
I want to make my code work in any Delphi version.
For this I use compiler directives. But the compiler is still not happy 100%.
Code:
{$IF Defined(Ver80) or
Defined(Ver90) or
Defined(Ver100) or
Defined(Ver120) or
Defined(Ver130) or
Defined(Ver140) or
Defined(Ver150) or
Defined(Ver160) or
Defined(Ver170) or
Defined(Ver180) or
Defined(Ver185) or
Defined(Ver190)}
{$ELSE}
{$DEFINE ALREADY_UNICODE}
{$IFEND}
{$IF NOT DEFINED(ALREADY_UNICODE)}
//some Unicode functions/procedures for old Delphi versions
{$IFEND}
XE5 compiler is keep warning me about {$IFEND}. It wants {$ENDIF} or {$LEGACYIFEND ON}.
But {$ENDIF} and {$LEGACYIFEND ON} are not accepted by older versions.
What can I do?
Thank you.
Regards,
David