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

leledumbo leledumbo_cool at yahoo.co.id
Wed Jun 17 05:47:47 CEST 2009

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 context: http://www.nabble.com/switch-units-depending-on-OS-and-lib-version-tp24055826p24066573.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

More information about the fpc-pascal mailing list