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. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal