Re: [fpc-pascal] switch units depending on OS and lib version

2009-06-17 Thread Marc Santhoff
Am Dienstag, den 16.06.2009, 20:47 -0700 schrieb leledumbo: > You've known the answer, use include files! The compiler information (i.e. > target platform) can be obtained via fpc -iXXX (see fpc -h for XXX values). > Use that value in a script (i.e. Makefiles) to subtitute directory names. > That's

Re: [fpc-pascal] switch units depending on OS and lib version

2009-06-16 Thread leledumbo
You've known the answer, use include files! The compiler information (i.e. target platform) can be obtained via fpc -iXXX (see fpc -h for XXX values). Use that value in a script (i.e. Makefiles) to subtitute directory names. That's what the compiler do all this time. -- View this message in conte

[fpc-pascal] switch units depending on OS and lib version

2009-06-16 Thread Marc Santhoff
Hi! There is a pascal wrapper for a library. The library comes in different versions. The library is specialized per operating system. How can I make fpc pick the right OS- and release version of the library? I know I could fiddle something using ifdef's, but since the rtl is build around select