Hi, Is the following allowed in LCL specific code?
{$IFDEF LCLGTK2} {$IF declared(Linux) or declared(FreeBSD)} {$define something} {$endif} {$endif} The IDE shows that CodeTools knows about the FreeBSD variable, but the code doesn't seem to work, because later in the code the "something" compiler define seems undefined during compilation - yet the IDE correctly shades the {$IFDEF something} wrapped code as active. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus