On 31/01/2008, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Something like > > {$ifdef cpu386} > {$ifdef linux} > {$define linux386} > {$endif} > {$endif}
Wow you guys reply quickly. :) The above code doesn't look nice either, so I think I will rather implement a alternative. All I really use 'libc' for is to retrieve the user name and group name from the user and group id's of files. As I said, it's not critical, I can always display the id's only. Or maybe parse the /etc/groups and /etc/passwd files to get the names, but I heard that's not very accurate for some reason. Thanks again Marco and Daniël for the quick replies! Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel