[Lazarus] $IF for Linux and FreeBSD platforms?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Feb 16 12:16:30 CET 2017


On 2017-02-16 10:54, Graeme Geldenhuys via Lazarus wrote:
> The IDE shows that CodeTools knows about the FreeBSD variable, but the
> code doesn't seem to work,


Doing the following though does work, but it means I have to duplicate
all $DEFINE lines in two places, which I don't really want to do.


{$IFDEF LCLGTK2}
  {$IFDEF Linux}
    {$DEFINE something}
    ...snip.
  {$ENDIF}
  {$IFDEF FreeBSD}
    {$DEFINE something}
    ...snip.
  {$ENDIF}
{$ENDIF}


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


More information about the Lazarus mailing list