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.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal