[fpc-pascal] Using platform specific include files like FPC does

Graeme Geldenhuys graemeg.lists at gmail.com
Thu May 21 11:33:20 CEST 2009


2009/5/21 Marco van de Voort <marcov at stack.nl>:
>
> 2 having make set the includedir to a target version.
>
> The first is dead simple, the second depends on your makefile system.

Ah, so that's the secret. :-)  Thanks, I'll try this one. I'm pretty
sure I can use some of the built-in path macros in Lazarus IDE to
accomplish this.


> Note that afaik the main reason FPC does this is because too many ifdefs
> make the source unreadable. It is not because of a grudge against ifdefs.

An the same reason I want to get rid of IFDEFs. The obfuscate the code.

Thanks for the tip. :)

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list