Luiz Americo Pereira Camara wrote:
# There is no real need for conditional options for units
Maybe there's already a solution to this case and i'm missing something.

In fact, i already found a workaround that i implemented in another package. I added a dummy unit to the package that uses the required units by OS something like:

{$ifdef windows}
Uses
 WinUnits;
{$endif}
{$ifdef unix}
Uses
 UnixUnits;
{$endif}

"WinUnits" and "UnixUnits" are not used i the package but are i the unit search path of the package

With this trick, "WinUnits" is compiled only under windows and "UnixUnits" under unixes.

Luiz


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to