On Wed, 15 Jun 2016 11:18:38 +0200
Sven Barth <pascaldra...@googlemail.com> wrote:

> Am 15.06.2016 10:15 schrieb "Juha Manninen" <juha.mannine...@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.

Thanks for the hint. Done.

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to