[fpc-pascal] Conditional code for FPC modes

Sven Barth pascaldragon at googlemail.com
Wed Jun 15 11:18:38 CEST 2016


Am 15.06.2016 10:15 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:
>
> Are there defines matching the modes in FPC, for example {$mode
delphiunicode} ?
> I want to do something like :
>   {$IFDEF delphiunicode}
>     ...
>   {$ELSE}
>     ...
>   {$ENDIF}

There are. They are FPC_<modename>, though DelphiUnicode seems to be
missing. You shouldn't directly check for that anyway, but instead for
FPC_UNICODESTRINGS which is set if String = UnicodeString independently of
the mode.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160615/490106e6/attachment.html>


More information about the fpc-pascal mailing list